#!/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