Script for running verdaccio server as daemon
This script run verdaccio under verdaccio
user, you should create it
adduser --no-create-home --disabled-login verdaccio
Copy service to init.d
sudo cp service/verdaccio /etc/init.d/verdaccio
sudo chmod +x /etc/init.d/verdaccio
We need also some directories to store configuration and packages
sudo mkdir /etc/verdaccio
sudo mkdir /etc/verdaccio/storage
sudo mv config.yaml /etc/verdaccio/
sudo chown verdaccio:verdaccio /etc/verdaccio/ -R
sudo chmod g+w /etc/verdaccio/storage
You should modify /etc/verdaccio/config.yaml
for your needs
Start it!
sudo /etc/init.d/verdaccio start
Forked from sinopia-scripts by Fabrizio "ramiel" Ruggeri