1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

save settings

This commit is contained in:
Julien Malik 2014-03-07 01:37:15 +01:00
parent fddbc483cd
commit 47b3fd71a0

View file

@ -20,10 +20,14 @@ if [[ ! $? -eq 0 ]]; then
exit 1
fi
final_path=/var/www/jirafeau
var_root=/home/yunohost.app/jirafeau
# Save specific settings
sudo yunohost app setting jirafeau admin_user -v $admin_user
sudo yunohost app setting jirafeau upload_password -v $upload_password
sudo yunohost app setting jirafeau is_public -v $is_public
# Copy files to the right place
final_path=/var/www/jirafeau
var_root=/home/yunohost.app/jirafeau
sudo mkdir -p $final_path
sudo cp -r ../sources/* $final_path
sed -i "s@YNH_DOMAIN@$domain@g" ../conf/config.local.php