mirror of
https://github.com/ZeJMaN/shinken_ynh.git
synced 2025-12-06 04:51:55 +01:00
first commit
Adding scripts Primitives "install" " delete" "upgrade" and nginx conf
This commit is contained in:
14
scripts/upgrade
Normal file
14
scripts/upgrade
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$(sudo yunohost app setting shinken domain)
|
||||
path=$(sudo yunohost app setting shinken path)
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path=${path%/}
|
||||
|
||||
# Configure Nginx and reload
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/shinken.conf
|
||||
sudo service nginx reload
|
||||
|
||||
Reference in New Issue
Block a user