1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/scripts/upgrade
2014-07-20 18:10:20 +02:00

16 lines
No EOL
441 B
Bash

#!/bin/bash
# Retrieve arguments
domain=$(sudo yunohost app setting kanboard domain)
path=$(sudo yunohost app setting kanboard path)
admin=$(sudo yunohost app setting kanboard adminusername)
final_path=/var/www/kanboard
sudo cp -a ../sources/* $final_path
# Set permissions to data directory
sudo chown -R www-data:www-data $final_path/data
# Reload Nginx and regenerate SSOwat conf
sudo service nginx reload
sudo yunohost app ssowatconf