This commit is contained in:
oznu
2018-04-05 17:46:50 +10:00
parent 257a66056d
commit 2079ed3891
6 changed files with 27 additions and 15 deletions
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/with-contenv sh
cp -rn /app/guacamole /config
mkdir -p /root/.config/freerdp/known_hosts
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv sh
# clean up extensions
for i in auth-ldap auth-duo auth-header auth-noauth auth-cas; do
for i in auth-ldap auth-duo auth-header auth-noauth auth-cas auth-openid; do
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
done
+6
View File
@@ -11,6 +11,12 @@ if [ $? -ne 0 ]; then
createuser -U postgres $POSTGRES_USER
createdb -U postgres -O $POSTGRES_USER $POSTGRES_DB
cat /app/guacamole/schema/*.sql | psql -U $POSTGRES_USER -d $POSTGRES_DB -f -
echo "0.9.14" > /config/.database-version
else
if [ "$(cat /config/.database-version)" != "0.9.14" ]; then
cat /app/guacamole/schema/upgrade/upgrade-pre-0.9.14.sql | psql -U $POSTGRES_USER -d $POSTGRES_DB -f -
echo "0.9.14" > /config/.database-version
fi
fi
echo "Starting guacamole client..."