Skip to content

Commit

Permalink
Merge pull request #78 from flcontainers/dev
Browse files Browse the repository at this point in the history
Fix modules not installing
  • Loading branch information
MaxWaldorf authored May 2, 2023
2 parents 8ac5dae + 0047a0c commit 824e6d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion filefs/usr/local/bin/_startup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
#!/bin/sh
echo "Preparing Config Folder"
if [ -d "/config/guacamole/" ]; then
rm -r /config/guacamole/extensions
rm -r /config/guacamole/extensions-available
rm -r /config/guacamole/lib
rm -r /config/guacamole/schema
cp -r /app/guacamole/extensions /config/guacamole
cp -r /app/guacamole/extensions-available /config/guacamole
cp -r /app/guacamole/lib /config/guacamole
cp -r /app/guacamole/schema /config/guacamole
fi
cp -rn /app/guacamole /config
mkdir -p /root/.config/freerdp/known_hosts
chown -R tomcat:tomcat /config/guacamole
chown -R tomcat:tomcat /opt/tomcat # Might help to fix issues with bug on tomcat logs

# Own postgres folder if exist (change to alpine)
if [ -d "/config/postgres/" ]; then
Expand Down Expand Up @@ -31,4 +42,4 @@ fi
# enable extensions
for i in $(echo "$EXTENSIONS" | tr "," " "); do
cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions
done
done

0 comments on commit 824e6d4

Please sign in to comment.