-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented debug config differently and fixed missing table issue
- Loading branch information
1 parent
ab7fa6b
commit 50c1f3f
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM nextcloud | ||
|
||
COPY custom-entrypoint.sh /custom-entrypoint.sh | ||
RUN chmod +x /custom-entrypoint.sh | ||
COPY after-install.sh /after-install.sh | ||
|
||
COPY debug.config.php /debug.config.php | ||
RUN chmod +x /custom-entrypoint.sh | ||
RUN chmod +x /after-install.sh | ||
|
||
ENTRYPOINT ["/custom-entrypoint.sh"] | ||
|
||
# Needs to be set again, even though it is already in base image | ||
# reference: https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact | ||
CMD ["apache2-foreground"] | ||
CMD ["/after-install.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
echo "after install !!!!!" | ||
|
||
run_as() { | ||
if [ "$(id -u)" = 0 ]; then | ||
su -p www-data -s /bin/sh -c "$1" | ||
else | ||
sh -c "$1" | ||
fi | ||
} | ||
|
||
run_as "php /var/www/html/occ config:system:set debug --value='true' --type=boolean" | ||
|
||
# Weirdly the Nextcloud docker activates user_saml app automatically but doesn't run the migration steps necessary for it to work | ||
run_as "php /var/www/html/occ migrations:migrate user_saml" | ||
|
||
apache2-foreground |
This file was deleted.
Oops, something went wrong.