mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
f2e4673f4e
commit
727f3b95eb
@ -6,7 +6,11 @@ sudo sh -c 'echo "init-password started at" $(date -d now) 1>> /tmp/init_debug.
|
|||||||
|
|
||||||
#1 init for applist of .env
|
#1 init for applist of .env
|
||||||
{% for app_name in applist.stdout_lines %}
|
{% for app_name in applist.stdout_lines %}
|
||||||
|
sudo docker compose -f /data/apps/{{app_name}}/docker-compose.yml down -v
|
||||||
sudo sed -i "s/_PASSWORD=.*/_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
sudo sed -i "s/_PASSWORD=.*/_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||||
|
sudo docker compose -f /data/apps/{{app_name}}/docker-compose.yml up -d --no-recreate
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
2 init for applist of special
|
#2 init for applist of special
|
||||||
|
|
||||||
|
sudo sh -c 'echo "init docker ended at" $(date -d now) 1>> /tmp/init_debug.txt'
|
||||||
|
Loading…
Reference in New Issue
Block a user