printscan-server/scanservjs-update.sh

13 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
if [[ $user != 'root' ]]; then
sudo="sudo"
else
sudo=""
fi
echo "Installing scanservjs directly from GitHub..."
curl -s https://raw.githubusercontent.com/sbs20/scanservjs/master/packages/server/installer.sh | $sudo bash -s -- -a
exit 0