Update setup.sh for scanservjs

This commit is contained in:
Alexandre CATTEAU 2023-11-12 13:43:30 +01:00
parent 013d1aad51
commit 099e533a54

View File

@ -13,7 +13,7 @@ $sudo mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.orig
$sudo cp $run_directory/cupsd.conf /etc/cups/cupsd.conf $sudo cp $run_directory/cupsd.conf /etc/cups/cupsd.conf
echo "Installing scanservjs directly from GitHub..." echo "Installing scanservjs directly from GitHub..."
curl -s https://raw.githubusercontent.com/sbs20/scanservjs/master/packages/server/installer.sh | $sudo bash -s -- -a curl -s https://raw.githubusercontent.com/sbs20/scanservjs/master/bootstrap.sh | sudo bash -s -- -v latest
echo "Generating TLS certificate" echo "Generating TLS certificate"
$sudo openssl req -newkey rsa:4096 -x509 -sha256 -days 999 -nodes -out /etc/ssl/cert.crt -keyout /etc/ssl/cert.key \ $sudo openssl req -newkey rsa:4096 -x509 -sha256 -days 999 -nodes -out /etc/ssl/cert.crt -keyout /etc/ssl/cert.key \