Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-09-06 16:17:29 +08:00 committed by GitHub
parent f9da28af24
commit b1380550ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,13 @@ replace_with_value_env(){
rm -f temp
}
if [ -d /data/apps/{{app_name}} ]; then
echo "It is a docker project"
else
echo "It is not a docker project"
exit 1
fi
new_password=$(pwgen -ncCs 14 1)!
sudo sleep 5s
sudo sh -c 'echo "init-password started at" $(date -d now) 1>> /tmp/init_debug.txt'