'install-little-backup-box.sh' updaten

This commit is contained in:
2019-06-01 12:40:20 +00:00
parent 7298e8b8c8
commit a19cc7fb7c

View File

@@ -25,12 +25,12 @@ echo "-----------------------------------"
echo "Installing the required packages..." echo "Installing the required packages..."
echo "-----------------------------------" echo "-----------------------------------"
apt install acl git-core screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl dialog php mba cifs-utils sudo -y apt install acl git-core screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl dialog php cifs-utils sudo -y
USER="root" USER="root"
sudo mkdir /media/card mkdir /media/card
echo "-----------------------------" echo "-----------------------------"
echo "Fetching Little Backup Box..." echo "Fetching Little Backup Box..."
@@ -48,7 +48,7 @@ EOF
cat > /etc/network/if-up.d/startphpweb <<- "EOF" cat > /etc/network/if-up.d/startphpweb <<- "EOF"
#! /bin/sh #! /bin/sh
cd /root/little-backup-box-Bram/scripts && sudo php -S 0.0.0.0:8000 & cd /root/little-backup-box-Bram/scripts && php -S 0.0.0.0:8000 &
exit 0 exit 0
EOF EOF
@@ -56,4 +56,4 @@ echo "---------------------------------------------"
echo "All done! The system will reboot in 1 minute." echo "All done! The system will reboot in 1 minute."
echo "---------------------------------------------" echo "---------------------------------------------"
sudo shutdown -r 1 shutdown -r 1