From 4ae13189f65c459b6c0eda9c18f31be594d10ed3 Mon Sep 17 00:00:00 2001 From: mhfowler Date: Sun, 22 Aug 2021 20:37:49 +0200 Subject: [PATCH] Add youtube-dl nodejs and npm as dependencies --- scripts/_common.sh | 3 ++- scripts/install | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 026c8d0..52ac426 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,8 @@ #================================================= # dependencies used by the app -pkg_dependencies="python3-venv expect" +pkg_dependencies="python3-venv expect youtube-dl nodejs np\ +m" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index fd69bbf..d9d508f 100755 --- a/scripts/install +++ b/scripts/install @@ -93,7 +93,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # INSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Installing dependencies..." --weight=1 +ynh_script_progression --message="Installing dependencies..." --weight=8 ynh_install_app_dependencies $pkg_dependencies @@ -179,11 +179,6 @@ chown -R $app:www-data "$datadir" #================================================= # INITIALIZE ARCHIVEBOX #================================================= -( -set +o nounset -source "${final_path}/venv/bin/activate" -set -o nounset - ynh_script_progression --message="Initializing Archivebox" --weight=1 cd $datadir && ynh_exec_as $app $archivebox_cmd init @@ -222,7 +217,6 @@ fi ynh_script_progression --message="Finishing Archivebox Setup" --weight=1 cd $datadir && ynh_exec_as $app $archivebox_cmd init --setup -) #================================================= # ADD A CONFIGURATION