mirror of
https://github.com/YunoHost-Apps/jeedom_ynh.git
synced 2024-09-03 19:26:26 +02:00
fix permission
This commit is contained in:
parent
4e1c42e429
commit
9dd9301668
2 changed files with 9 additions and 3 deletions
|
@ -58,13 +58,16 @@ chown "$app:$app" "$install_dir/core/config/common.config.php"
|
||||||
ynh_script_progression --message="Installing Jeedom..."
|
ynh_script_progression --message="Installing Jeedom..."
|
||||||
|
|
||||||
# Install Jeedom
|
# Install Jeedom
|
||||||
ynh_exec_as "$app" "php$phpversion" "$install_dir/install/install.php" mode=force
|
"php$phpversion" "$install_dir/install/install.php" mode=force
|
||||||
|
|
||||||
# Configure LDAP and the Admin User and access settings
|
# Configure LDAP and the Admin User and access settings
|
||||||
ynh_add_config --template="config.sql" --destination="$install_dir/config.sql"
|
ynh_add_config --template="config.sql" --destination="$install_dir/config.sql"
|
||||||
ynh_mysql_execute_file_as_root --file="$install_dir/config.sql" --database="$db_name"
|
ynh_mysql_execute_file_as_root --file="$install_dir/config.sql" --database="$db_name"
|
||||||
ynh_secure_remove --file="$install_dir/config.sql"
|
ynh_secure_remove --file="$install_dir/config.sql"
|
||||||
|
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -68,10 +68,13 @@ chown "$app:$app" "$install_dir/core/config/common.config.php"
|
||||||
ynh_script_progression --message="Upgrading Jeedom..."
|
ynh_script_progression --message="Upgrading Jeedom..."
|
||||||
|
|
||||||
# Upgrade Jeedom
|
# Upgrade Jeedom
|
||||||
ynh_exec_as "$app" "php$phpversion" "$install_dir/install/install.php" mode=force
|
"php$phpversion" "$install_dir/install/install.php" mode=force
|
||||||
|
|
||||||
# Check
|
# Check
|
||||||
# ynh_exec_as "$app" "php$phpversion" "$install_dir/install/sick.php"
|
# "php$phpversion" "$install_dir/install/sick.php"
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
|
|
Loading…
Add table
Reference in a new issue