This commit is contained in:
luk
2026-07-19 12:17:02 +08:00
parent ae37e23e8f
commit d2aa406067
3 changed files with 15 additions and 5 deletions

8
autostart.sh Normal file
View File

@@ -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`

View File

@@ -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

View File

@@ -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
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