Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
ROOTUID="0" | ||
if [ "$(id -u)" -ne "$ROOTUID" ] ; then | ||
echo "Error: This script must be executed with root privileges. Try sudo." | ||
exit 1 | ||
fi | ||
|
||
if [ -e ~/scanserv.zip ] ; then | ||
rm ~/scanserv.zip | ||
fi | ||
|
||
wget -O ~/scanserv.zip "https://github.com/sbs20/scanserv/archive/master.zip" | ||
|
||
if ! cd /var/www/html; then | ||
echo "Is apache installed? Maybe:" | ||
echo " sudo apt install apache2 apache2-utils libapache2-mod-php" | ||
echo | ||
echo "You may also want: sudo apt install sane-utils imagemagick" | ||
exit 1 | ||
fi | ||
|
||
sudo unzip ~/scanserv.zip | ||
sudo mv scanserv-master scanserv | ||
sudo chown -R root:www-data scanserv/output/ | ||
sudo chown -R root:www-data scanserv/preview/ | ||
sudo chmod 775 scanserv/output/ | ||
sudo chmod 775 scanserv/preview/ |