diff --git a/autostart.sh b/autostart.sh new file mode 100644 index 0000000..73139e0 --- /dev/null +++ b/autostart.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +## this file is used to start all the backend services on system startup. + +## /usr/bin/npm is not available even if nodejs is apt-installed. Must enable nvm to use npm. +source /root/.nvm/nvm.sh + +## add `sudo` to run tasks as root so as to be displayed in `sudo pm2 list` \ No newline at end of file diff --git a/debian-update.sh b/debian-update.sh index d5f4d4c..4b8ced5 100644 --- a/debian-update.sh +++ b/debian-update.sh @@ -2,7 +2,7 @@ ## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-update.sh | bash" -echo "Update the current Debian major version to the next newer major version. For instance, update 11 to 12, or 12 to 13" +echo "Update Debian's currently-installed major version to the next newer major version. For instance, update 11 to 12, or 12 to 13" echo if [ -f /etc/debian_version ]; then diff --git a/nodejs-remove.sh b/nodejs-remove.sh index 29602f3..681af42 100755 --- a/nodejs-remove.sh +++ b/nodejs-remove.sh @@ -2,7 +2,9 @@ echo "Usage: $(basename $0) [VERSION]" -sudo rm -fr /usr/local/bin/node -sudo rm -fr /usr/local/bin/npm -sudo rm -fr /usr/local/lib/node_modules -sudo rm -fr /usr/local/include/node \ No newline at end of file +sudo apt remove nodejs + +# sudo rm -fr /usr/local/bin/node +# sudo rm -fr /usr/local/bin/npm +# sudo rm -fr /usr/local/lib/node_modules +# sudo rm -fr /usr/local/include/node \ No newline at end of file