Move this stuff to the postinst

parent fa24a782
......@@ -9,11 +9,8 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt full-upgrade -qy
RUN apt install -qy ca-certificates certbot python3-certbot-apache cron smbclient wget
RUN cd /var/www/html/core/skeleton && \
rm -rf Documents Nextcloud.mp4 Nextcloud.png Photos 'Nextcloud Manual.pdf'
COPY logo.png /var/www
COPY logo.png /var/www/html/core/skeleton
COPY configure-fuss.sh /
COPY crontab /etc
......
......@@ -49,9 +49,13 @@ run_as 'php /var/www/html/occ background:cron'
run_as 'php /var/www/html/occ config:app:set theming name --value "FUSS Remote Access"'
run_as 'php /var/www/html/occ config:app:set theming slogan --value "${INSTITUTE_NAME}"'
run_as 'php /var/www/html/occ config:app:set theming color --value "#996400"'
run_as 'cp /var/www/logo.png /var/www/html/core/img/logo/logo.svg'
run_as 'cp /var/www/logo.png /var/www/html/core/img/logo/logo.png'
run_as 'php /var/www/html/occ maintenance:theme:update'
# Default provided files to new users
rm -rf /var/www/html/core/skeleton/*
run_as 'cp /var/www/logo.png /var/www/html/core/skeleton/FUSS.png'
/usr/sbin/cron
# Run the server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment