mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
01445c955f
commit
31f0bebc62
@ -1,8 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Donwloading template for OpenResty"
|
||||||
|
wget -O /etc/openpanel/nginx/vhosts/1.1/docker_openresty_domain.conf https://github.com/stefanpejcic/openpanel-configuration/blob/main/nginx/vhosts/1.1/docker_openresty_domain.conf
|
||||||
|
wget -O /etc/openpanel/openresty/nginx.conf https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/openresty/nginx.conf
|
||||||
|
|
||||||
|
|
||||||
echo "Updating template: /etc/openpanel/varnish/default.vcl"
|
echo "Updating template: /etc/openpanel/varnish/default.vcl"
|
||||||
wget -O /etc/openpanel/varnish/default.vcl https://github.com/stefanpejcic/openpanel-configuration/blob/main/varnish/default.vcl
|
wget -O /etc/openpanel/varnish/default.vcl https://github.com/stefanpejcic/openpanel-configuration/blob/main/varnish/default.vcl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for dir in /home/*; do
|
for dir in /home/*; do
|
||||||
file="$dir/.env"
|
file="$dir/.env"
|
||||||
user=$(basename "$dir")
|
user=$(basename "$dir")
|
||||||
@ -17,6 +25,12 @@ for dir in /home/*; do
|
|||||||
|
|
||||||
echo "- Updated $file for user: $user to add CRON limits"
|
echo "- Updated $file for user: $user to add CRON limits"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp /etc/openpanel/openresty/nginx.conf file="$dir/openresty.conf"
|
||||||
|
echo "- Created openresty settings template for user: $user"
|
||||||
|
# TODO:
|
||||||
|
# edit .env
|
||||||
|
# and edit docker-compose.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file="$dir/docker-compose.yml"
|
file="$dir/docker-compose.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user