mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Fix
This commit is contained in:
parent
93bcb25d6e
commit
96b22e7c83
4 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue