mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update main.yml
This commit is contained in:
parent
5466675a3d
commit
7731e54d33
1 changed files with 7 additions and 7 deletions
|
@ -16,14 +16,14 @@ init_docker:
|
|||
admin_username: Administrator
|
||||
admin_password: "admin"
|
||||
service_after: "docker.service"
|
||||
compose_path: "/data/wwwroot/erpnext/docker-compose.yml"
|
||||
compose_path: "/data/apps/erpnext/docker-compose.yml"
|
||||
compose_commands:
|
||||
- cd /data/wwwroot/erpnext
|
||||
- cd /data/apps/erpnext
|
||||
- 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/123456/$new_password/g" /data/wwwroot/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_NAME=.*/APP_SITE_NAME=\`$public_ip\`/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/apps/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/apps/erpnext/.env
|
||||
- sudo docker volume prune -f
|
||||
volumes:
|
||||
- /data/wwwroot/erpnext/volumes
|
||||
- /data/apps/erpnext/volumes
|
||||
|
|
Loading…
Reference in a new issue