1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00

Update install

This commit is contained in:
Éric Gaspar 2024-06-19 22:20:38 +02:00
parent 2f810f7aec
commit 01dc70bfb6

View file

@ -26,6 +26,25 @@ ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins
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"
#=================================================
# CREATE LINK TO DATA DIRECTORY
#=================================================
ynh_script_progression --message="Creating a data directory..."
ln -sd $data_dir/_data $install_dir/_data
ln -sd $data_dir/upload $install_dir/upload
ln -sd $data_dir/galleries $install_dir/galleries
cp -Rp $tmpdir/_data/. $install_dir/_data
cp -Rp $tmpdir/upload/. $install_dir/upload
cp -Rp $tmpdir/galleries/. $install_dir/galleries
ynh_secure_remove --file="$tmpdir"
chmod 750 "$data_dir"
chmod -R o-rwx "$data_dir"
chown -R $app:www-data "$data_dir"
#================================================= #=================================================
# SYSTEM CONFIGURATIONS # SYSTEM CONFIGURATIONS
#================================================= #=================================================