init work remote API

This commit is contained in:
bunkerity
2021-10-02 20:29:50 +02:00
parent 5d94cc8f43
commit 64aa9c2530
6 changed files with 165 additions and 0 deletions

View File

@@ -749,6 +749,10 @@ fi
echo "[*] Copy bunkerized-nginx"
do_and_check_cmd cp /tmp/bunkerized-nginx/helpers/bunkerized-nginx /usr/local/bin
# Copy VERSION
echo "[*] Copy VERSION"
do_and_check_cmd cp /tmp/bunkerized-nginx/VERSION /opt/bunkerized-nginx
# Replace old nginx.service file
if [ "$OS" != "alpine" ] ; then
do_and_check_cmd mv /lib/systemd/system/nginx.service /lib/systemd/system/nginx.service.bak