first commit

Adding scripts Primitives "install" " delete" "upgrade" and nginx conf
This commit is contained in:
Jeremy MANSON
2016-03-07 10:19:14 +01:00
parent c8ece66482
commit 93a05133b0
6 changed files with 111 additions and 0 deletions

14
scripts/upgrade Normal file
View 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