mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Try to fix permission
This commit is contained in:
parent
386490336a
commit
285a65d112
1 changed files with 3 additions and 5 deletions
|
@ -16,7 +16,7 @@ ynh_app_setting_set --app=$app --key=version --value=$(ynh_app_upstream_version)
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A MYSQL DATABASE
|
# CREATE A MYSQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating $app's MySQL database..." --weight=1
|
ynh_script_progression --message="Configuring $app's MySQL database..." --weight=1
|
||||||
|
|
||||||
ynh_mysql_execute_as_root --sql="ALTER DATABASE $db_name charset=utf8"
|
ynh_mysql_execute_as_root --sql="ALTER DATABASE $db_name charset=utf8"
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
ynh_setup_source --source_id="main" --dest_dir="$install_dir"
|
ynh_setup_source --source_id="main" --dest_dir="$install_dir"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chmod go-w "$install_dir/documents"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PREPARE AND INSTALL APP
|
# PREPARE AND INSTALL APP
|
||||||
|
@ -95,12 +97,8 @@ if [ ! -f "$install_dir/documents/install.lock" ]; then
|
||||||
chmod 440 "$install_dir/documents/install.lock"
|
chmod 440 "$install_dir/documents/install.lock"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R "$app:www-data" "$install_dir"
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
mkdir -p "$install_dir/documents"
|
|
||||||
chown -R "$app:" "$install_dir/documents"
|
chown -R "$app:" "$install_dir/documents"
|
||||||
chmod go-w "$install_dir/documents"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LDAP
|
# SETUP LDAP
|
||||||
|
|
Loading…
Reference in a new issue