mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
26 lines
596 B
Text
26 lines
596 B
Text
set -e
|
|
|
|
# Retrieve arguments
|
|
domain=$1
|
|
path=$2
|
|
|
|
# Check domain/path availability
|
|
sudo yunohost app checkurl $domain$path -a noalyss
|
|
if [[ ! $? -eq 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
sudo apt-get install postgresql php5 php5-pgsql php5-gd php-gettext p7zip-full libgd2-xpm-dev
|
|
|
|
final_path=/var/www/noalyss
|
|
sudo mkdir -p $final_path
|
|
sudo cp -a ../sources/html/ $final_path
|
|
sudo cp -a ../sources/include/ $final_path
|
|
|
|
sudo chown -R www-data: $final_path
|
|
|
|
sudo yunohost app setting noalyss version -v "6.9.0.0"
|
|
|
|
# Reload Nginx and regenerate SSOwat conf
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf
|