Added lines for services to clean up files after start
This commit is contained in:
parent
55488de001
commit
3efa08efcc
@ -96,6 +96,9 @@ start_baserow() {
|
||||
# Disable new sign ups
|
||||
docker exec postgresql psql -U baserow -c "update core_settings set allow_new_signups='f' where allow_new_signups='t';"
|
||||
|
||||
# Remove baserow create user
|
||||
rm /federated/apps/baserow/data/baserow/data/createuser.sh
|
||||
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
echo -ne "done."
|
||||
}
|
||||
|
@ -180,6 +180,9 @@ start_gitea() {
|
||||
GITEA_TOKEN_1=`docker exec gitea curl -H "Content-Type: application/json" -d '{"name":"gitea1","scopes":["all"]}' -u gitea:$ADMINPASS http://gitea.$DOMAIN:3000/api/v1/users/gitea/tokens 2>/dev/null | awk -F: '{ print $4 }' | awk -F\" '{ print $2 }'` &> /dev/null
|
||||
[ $? -ne 0 ] && fail "Couldn't run gitea curl to get token inside /federated/apps/gitea container"
|
||||
|
||||
# Remove creategitea.sh
|
||||
rm /federated/apps/gitea/data/data/creategitea.sh
|
||||
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
echo -ne "done."
|
||||
}
|
||||
|
@ -266,6 +266,7 @@ start_nextcloud() {
|
||||
[ $? -ne 0 ] && fail "Couldn't run config.sh inside /federated/apps/nextcloud container"
|
||||
|
||||
# Add admin user to group
|
||||
# Have to do it this many times so it will query LDAP and populate admin user first
|
||||
docker exec -u 33 nextcloud /var/www/html/occ ldap:search admin
|
||||
docker exec -u 33 nextcloud /var/www/html/occ group:list
|
||||
docker exec -u 33 nextcloud /var/www/html/occ group:adduser admin admin
|
||||
@ -275,6 +276,9 @@ start_nextcloud() {
|
||||
# Setup admin email account
|
||||
docker exec -u 33 nextcloud bash -c "/var/www/html/occ mail:account:create admin admin admin@$DOMAIN mail.$DOMAIN 993 ssl admin@$DOMAIN $ADMINPASS mail.$DOMAIN 465 ssl admin@$DOMAIN $ADMINPASS password" &> /dev/null
|
||||
|
||||
# Remove configs
|
||||
rm /federated/apps/nextcloud/data/var/www/html/config.sh /federated/apps/nextcloud/data/var/www/html/configs.json
|
||||
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
echo -ne "done."
|
||||
}
|
||||
|
@ -125,6 +125,9 @@ start_pdns() {
|
||||
docker exec pdns /root/createrecords.sh &> /dev/null
|
||||
[ $? -ne 0 ] && fail "Couldn't run createrecords.sh in /federated/apps/pdns container"
|
||||
|
||||
# Remove createrecords
|
||||
rm /federated/apps/pdns/data/root/createrecords.sh
|
||||
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
echo -ne "done."
|
||||
}
|
||||
|
@ -118,6 +118,9 @@ start_postgresql() {
|
||||
/federated/bin/stop postgresql &> /dev/null
|
||||
/federated/bin/start postgresql &> /dev/null
|
||||
|
||||
# Remove init.sql
|
||||
rm /federated/apps/postgresql/data/docker-entrypoint-initdb.d/init.sql
|
||||
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
echo -ne "done."
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user