1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00
This commit is contained in:
ericgaspar 2021-05-09 10:24:41 +02:00
parent 93bcb25d6e
commit 96b22e7c83
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 6 additions and 1 deletions

View file

@ -35,6 +35,7 @@ is_public=$(ynh_app_setting_get --app=$app --key=is_public)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
db_user=$db_name
public_path=$(ynh_app_setting_get --app=$app --key=public_path)
secret=$(ynh_app_setting_get --app=$app --key=secret)
max_file_size=$(ynh_app_setting_get --app=$app --key=max_file_size)

View file

@ -162,7 +162,7 @@ chown $app:$app $final_path/lufi.conf
ynh_script_progression --message="Installing $app..."
pushd $final_path
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
popd
#=================================================
@ -190,6 +190,7 @@ ynh_script_progression --message="Securing files and directories..."
# Set permissions to app files
chown -R $app:www-data $final_path
chmod -R o-rwx "$final_path"
chown -R $app:www-data $public_path
chmod 755 $public_path

View file

@ -30,6 +30,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
public_path=$(ynh_app_setting_get --app=$app --key=public_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
@ -75,6 +76,7 @@ ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app:www-data $final_path
chmod -R o-rwx "$final_path"
chmod 755 $public_path
#=================================================

View file

@ -212,6 +212,7 @@ ynh_script_progression --message="Securing files and directories..."
# Set permissions on app files
chown -R $app:www-data $final_path
chmod -R o-rwx "$final_path"
chown -R $app:www-data $public_path
chmod 755 $public_path