From 068b643e8349fb4547e269950d8f772e8acef3b3 Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Wed, 25 Oct 2023 13:57:07 +0200 Subject: [PATCH] Improvements in scripts/install --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index ce76481..1fa3713 100755 --- a/scripts/install +++ b/scripts/install @@ -52,7 +52,6 @@ git config --system --add safe.directory $install_dir # Download, check integrity, uncompress and patch the source from GitHub git clone https://codeberg.org/streams/streams.git "$install_dir" --quiet -git config pull.rebase false touch "$install_dir/php.log" mkdir -p "$install_dir/store" @@ -81,6 +80,7 @@ ynh_install_composer --workdir="$install_dir" chown -R $app:www-data "$install_dir" pushd $install_dir + ynh_exec_as $app git config pull.rebase false ynh_exec_as $app util/add_addon_repo https://codeberg.org/streams/streams-addons.git zaddons cd /var/www/$app/extend/addon/zaddons ynh_exec_as $app git config pull.rebase false @@ -122,6 +122,7 @@ chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" # Add daily update script ynh_add_config --template="../conf/daily-update.sh" --destination="/home/yunohost.app/$app/daily-update.sh" +chown root: "/home/yunohost.app/$app/daily-update.sh" #================================================= # GENERIC FINALIZATION