mirror of
https://github.com/jwetzell/docker-guacamole.git
synced 2026-08-19 14:14:18 +00:00
1.0.0
This commit is contained in:
@@ -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 auth-openid; do
|
||||
for i in auth-ldap auth-duo auth-header auth-cas auth-openid auth-quickconnect auth-totp; do
|
||||
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
|
||||
done
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ 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
|
||||
echo "$GUAC_VER" > /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
|
||||
if [ "$(cat /config/.database-version)" != "$GUAC_VER" ]; then
|
||||
cat /app/guacamole/schema/upgrade/upgrade-pre-$GUAC_VER.sql | psql -U $POSTGRES_USER -d $POSTGRES_DB -f -
|
||||
echo "$GUAC_VER" > /config/.database-version
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user