1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cac-proxy_ynh.git synced 2024-09-03 18:16:07 +02:00
This commit is contained in:
Éric Gaspar 2024-09-01 18:12:56 +02:00
parent 6670b97d54
commit d8840e4c7f
4 changed files with 4 additions and 15 deletions

View file

@ -18,8 +18,6 @@ ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from amd64.src
ynh_setup_source --dest_dir="$install_dir/package"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "$install_dir"
#=================================================
# ADD SSH ACCESS
#=================================================
@ -45,7 +43,7 @@ if [ $install_chromium -eq 1 ]; then
ynh_script_progression "Installing Chromium..."
pushd "$install_dir/package"
ynh_exec_as_app node_load_PATH node "./node_modules/puppeteer/install.js"
ynh_exec_as_app node "./node_modules/puppeteer/install.js"
popd
fi

View file

@ -24,13 +24,7 @@ ynh_config_remove_logrotate
_remove_restart_script_and_sudoers
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression "Removing NodeJS..."
# Remove metapackage and its dependencies
ynh_nodejs_remove --nodejs_version=$nodejs_version
ynh_nodejs_remove
#=================================================
# END OF SCRIPT

View file

@ -11,8 +11,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "$install_dir"
#Make sure the .ssh and files have the correct access rights
if [ -n "$public_key" ]; then
chown -R $app:$app "$install_dir/.ssh"

View file

@ -43,8 +43,6 @@ if ynh_app_upstream_version_changed; then
ynh_setup_source --dest_dir="$install_dir/package" --full_replace
fi
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:$app "$install_dir"
if [ -n "$public_key" ]; then
ynh_script_progression "Enabling ssh access for dev..."
# enable ssh access to the files for updates
@ -62,6 +60,7 @@ fi
#=================================================
# Install chromium
#=================================================
if [ "$install_chromium" -eq 1 ]; then
ynh_script_progression "Upgrading Chromium..."
@ -69,7 +68,7 @@ if [ "$install_chromium" -eq 1 ]; then
ynh_safe_rm "$install_dir/.cache/puppeteer/chrome"
pushd "$install_dir/package"
ynh_exec_as_app node_load_PATH node "./node_modules/puppeteer/install.js"
ynh_exec_as_app node "./node_modules/puppeteer/install.js"
popd
fi