From 01dc70bfb67d1b4f962ae42626d332ad2c7d21c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 19 Jun 2024 22:20:38 +0200 Subject: [PATCH] Update install --- scripts/install | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/install b/scripts/install index f50651a..9207125 100644 --- a/scripts/install +++ b/scripts/install @@ -26,6 +26,25 @@ ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins chmod -R o-rwx "$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 #=================================================