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

fix upgrade

This commit is contained in:
Salamandar 2024-03-26 22:01:44 +01:00
parent f16d38ba13
commit 785a5f8860

View file

@ -80,21 +80,15 @@ ynh_backup_if_checksum_is_different --file="$install_dir/htdocs/conf/conf.php"
ynh_store_file_checksum --file="$install_dir/htdocs/conf/conf.php" ynh_store_file_checksum --file="$install_dir/htdocs/conf/conf.php"
chmod 644 "$install_dir/htdocs/conf/conf.php" chmod 644 "$install_dir/htdocs/conf/conf.php"
#================================================= if [ ! -f "$install_dir/documents/install.lock" ]; then
# SECURE FILES AND DIRECTORIES echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$install_dir/documents/install.lock"
#================================================= chown "$app:$app" "$install_dir/documents/install.lock"
#REMOVEME? ynh_script_progression --message="Configuring permissions..." --weight=1 chmod 440 "$install_dir/documents/install.lock"
# Set permissions on app files
if [ ! -f "$data_dir/install.lock" ]; then
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$data_dir/install.lock"
chown $app:$app "$data_dir/install.lock"
chmod 440 "$data_dir/install.lock"
fi fi
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R "$app:www-data" "$install_dir"
# mkdir -p "$data_dir" # mkdir -p "$data_dir"
# chown -R $app: "$data_dir" # chown -R $app: "$data_dir"