u
This commit is contained in:
8
autostart.sh
Normal file
8
autostart.sh
Normal 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`
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-update.sh | bash"
|
## "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
|
echo
|
||||||
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
echo "Usage: $(basename $0) [VERSION]"
|
echo "Usage: $(basename $0) [VERSION]"
|
||||||
|
|
||||||
sudo rm -fr /usr/local/bin/node
|
sudo apt remove nodejs
|
||||||
sudo rm -fr /usr/local/bin/npm
|
|
||||||
sudo rm -fr /usr/local/lib/node_modules
|
# sudo rm -fr /usr/local/bin/node
|
||||||
sudo rm -fr /usr/local/include/node
|
# sudo rm -fr /usr/local/bin/npm
|
||||||
|
# sudo rm -fr /usr/local/lib/node_modules
|
||||||
|
# sudo rm -fr /usr/local/include/node
|
||||||
Reference in New Issue
Block a user