Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-13 09:45:35 +08:00 committed by GitHub
parent 5466675a3d
commit 7731e54d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,14 +16,14 @@ init_docker:
admin_username: Administrator admin_username: Administrator
admin_password: "admin" admin_password: "admin"
service_after: "docker.service" service_after: "docker.service"
compose_path: "/data/wwwroot/erpnext/docker-compose.yml" compose_path: "/data/apps/erpnext/docker-compose.yml"
compose_commands: compose_commands:
- cd /data/wwwroot/erpnext - cd /data/apps/erpnext
- public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash` - public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
- sudo sed -i "s/admin/$new_password/g" /data/wwwroot/erpnext/.env - sudo sed -i "s/admin/$new_password/g" /data/apps/erpnext/.env
- sudo sed -i "s/123456/$new_password/g" /data/wwwroot/erpnext/.env - sudo sed -i "s/123456/$new_password/g" /data/apps/erpnext/.env
- sudo sed -i "s/APP_SITE_URL.*/APP_SITE_URL=$public_ip/g" /data/wwwroot/erpnext/.env - sudo sed -i "s/APP_SITE_URL.*/APP_SITE_URL=$public_ip/g" /data/apps/erpnext/.env
- sudo sed -i "s/APP_SITE_NAME=.*/APP_SITE_NAME=\`$public_ip\`/g" /data/wwwroot/erpnext/.env - sudo sed -i "s/APP_SITE_NAME=.*/APP_SITE_NAME=\`$public_ip\`/g" /data/apps/erpnext/.env
- sudo docker volume prune -f - sudo docker volume prune -f
volumes: volumes:
- /data/wwwroot/erpnext/volumes - /data/apps/erpnext/volumes