mirror of
https://github.com/YunoHost-Apps/zwave-js-ui_ynh.git
synced 2024-09-03 18:06:00 +02:00
remove comments
This commit is contained in:
parent
086f77b4d9
commit
16f1cda2ea
3 changed files with 0 additions and 142 deletions
|
@ -9,24 +9,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# ADD SWAP IF NEEDED
|
||||
#=================================================
|
||||
#https://github.com/zwave-js/zwave-js-ui/issues/2699
|
||||
#ynh_script_progression --message="Checking for RAM..."
|
||||
|
||||
#total_memory=$(ynh_get_ram --total)
|
||||
#swap_needed=0
|
||||
|
||||
#if [ $total_memory -lt $MEMORY_NEEDED ]; then
|
||||
# Need a minimum of 2Go of memory
|
||||
# swap_needed=$(($MEMORY_NEEDED - $total_memory))
|
||||
# ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
# SD_CARD_CAN_SWAP=1
|
||||
# ynh_add_swap --size=$swap_needed
|
||||
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -44,16 +26,6 @@ if grep gpio -q < /etc/group; then
|
|||
usermod -a -G gpio "$app"
|
||||
fi
|
||||
|
||||
|
||||
#=================================================
|
||||
# INSTALL EXTRA DEPENDENCIES
|
||||
#=================================================
|
||||
#REMOVEME? ynh_script_progression --message="Installing dependencies..." --weight=15
|
||||
|
||||
#ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
#ynh_use_nodejs
|
||||
#ynh_exec_warn_less $ynh_npm install ---global yarn
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -66,44 +38,6 @@ chmod 750 "$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app: "$install_dir"
|
||||
|
||||
|
||||
|
||||
#=================================================
|
||||
# BUILD FROM SOURCE
|
||||
#=================================================
|
||||
#ynh_script_progression --message="Building from sources..." --weight=1
|
||||
|
||||
#pushd "$install_dir"
|
||||
# ynh_script_progression --message="Fetching Yarn dependencies... This can be very long, be patient !" --weight=40
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn plugin import workspace-tools
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn workspaces focus --production
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --network-timeout 1000000000
|
||||
# #On slow/low memory system, yarn silently fails with a 0 return code and nothing seems to be doable about that so far.
|
||||
# #relaunching yarn install seems to do the trick for raspberry at least as it resumes from where it fails
|
||||
# #https://github.com/yarnpkg/berry/issues/3996
|
||||
# #https://github.com/yarnpkg/berry/issues/5065
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --network-timeout 1000000000
|
||||
# ynh_script_progression --message="Cleaning cache... " --weight=3
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1
|
||||
# ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=30
|
||||
##https://geeklearning.io/angular-aot-webpack-memory-trick/
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=2048 yarn run build
|
||||
# ynh_script_progression --message="Cleaning cache... " --weight=3
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1
|
||||
#popd
|
||||
|
||||
#chmod 750 "$install_dir"
|
||||
#chmod -R o-rwx "$install_dir"
|
||||
#chown -R $app: "$install_dir"
|
||||
|
||||
|
||||
#=================================================
|
||||
# REMOVE ADDITIONNAL SWAP
|
||||
#=================================================
|
||||
#if [ $swap_needed > 0 ]; then
|
||||
# ynh_script_progression --message="Remove additionnal swap..." --weight=2
|
||||
# ynh_del_swap
|
||||
#fi
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -28,14 +28,6 @@ ynh_remove_systemd_config
|
|||
|
||||
ynh_remove_logrotate
|
||||
|
||||
#ynh_remove_nodejs
|
||||
|
||||
#In case install or upgrade went wrong, remove script is launched, so we need to ensure additional swap is deleted
|
||||
#if [ -e /swap_$app ]; then
|
||||
# ynh_script_progression --message="Remove additionnal swap..." --weight=2
|
||||
# ynh_del_swap
|
||||
#fi
|
||||
|
||||
ynh_remove_nginx_config
|
||||
|
||||
# Remove the log files
|
||||
|
|
|
@ -24,30 +24,6 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
|||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
#ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
#=================================================
|
||||
# ADD SWAP IF NEEDED
|
||||
#=================================================
|
||||
#https://github.com/zwave-js/zwave-js-ui/issues/2699
|
||||
#if [ "$upgrade_type" == "UPGRADE_APP" ]; then
|
||||
# ynh_script_progression --message="Checking for RAM..."
|
||||
|
||||
# total_memory=$(ynh_get_ram --total)
|
||||
# swap_needed=0
|
||||
|
||||
# if [ $total_memory -lt $MEMORY_NEEDED ]; then
|
||||
# # Need a minimum of 2Go of memory
|
||||
# swap_needed=$(($MEMORY_NEEDED - $total_memory))
|
||||
# ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
# SD_CARD_CAN_SWAP=1
|
||||
# ynh_add_swap --size=$swap_needed
|
||||
# fi
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -63,15 +39,6 @@ if grep gpio -q < /etc/group; then
|
|||
usermod -a -G gpio "$app"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
#REMOVEME? ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||
|
||||
#ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
#ynh_use_nodejs
|
||||
#ynh_exec_warn_less $ynh_npm install ---global yarn
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -86,43 +53,8 @@ then
|
|||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app: "$install_dir"
|
||||
|
||||
# ynh_script_progression --message="Building from sources..." --weight=15
|
||||
# pushd "$install_dir"
|
||||
# ynh_script_progression --message="Fetching Yarn dependencies... This can be very long, be patient !" --weight=18
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn plugin import workspace-tools
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn workspaces focus --production
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --network-timeout 1000000000
|
||||
#On slow/low memory system, yarn silently fails with a 0 return code and nothing seems to be doable about that so far.
|
||||
#relaunching yarn install seems to do the trick for raspberry at least as it resumes from where it fails
|
||||
#https://github.com/yarnpkg/berry/issues/3996
|
||||
#https://github.com/yarnpkg/berry/issues/5065
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --network-timeout 1000000000
|
||||
# ynh_script_progression --message="Cleaning cache... " --weight=3
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1
|
||||
# ynh_script_progression --message="Building Yarn dependencies... This can be very long, be patient !" --weight=18
|
||||
#https://geeklearning.io/angular-aot-webpack-memory-trick/
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_OPTIONS=--max-old-space-size=2048 yarn run build
|
||||
# ynh_script_progression --message="Cleaning cache... " --weight=3
|
||||
# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean 2>&1
|
||||
# popd
|
||||
|
||||
# chmod 750 "$install_dir"
|
||||
# chmod -R o-rwx "$install_dir"
|
||||
# chown -R $app: "$install_dir"
|
||||
#
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE ADDITIONNAL SWAP
|
||||
#=================================================
|
||||
#if [ "$upgrade_type" == "UPGRADE_APP" ]; then
|
||||
# if [ $swap_needed > 0 ]; then
|
||||
# ynh_script_progression --message="Remove additionnal swap..." --weight=2
|
||||
# ynh_del_swap
|
||||
# fi
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue