mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 17:40:35 +08:00
10 lines
343 B
Bash
10 lines
343 B
Bash
#!/bin/bash
|
|
|
|
# start by supervisord
|
|
internal_ip=$(ip addr show eth0 | awk '/inet /{split($2, a, "/"); print a[1]}')
|
|
nsenter -m -u -i -n -p -t 1 sh -c "sed -i '/websoft9-appmanage/d' /etc/hosts"
|
|
nsenter -m -u -i -n -p -t 1 sh -c "echo $internal_ip websoft9-appmanage>> /etc/hosts"
|
|
/usr/bin/supervisord
|
|
supervisorctl start all
|
|
tail -f /dev/null
|