From 887f1b35984917fb8d6b33570b7088876ffbbcde Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 5 Jun 2019 22:13:14 +0000 Subject: [PATCH] 'install-photo-import-tool.sh' updaten --- install-photo-import-tool.sh | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/install-photo-import-tool.sh b/install-photo-import-tool.sh index 8243652..ea57bff 100644 --- a/install-photo-import-tool.sh +++ b/install-photo-import-tool.sh @@ -1,18 +1,5 @@ #!/usr/bin/env bash -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - echo "----------------------" echo "Updating the system..." echo "----------------------" @@ -25,21 +12,15 @@ echo "-----------------------------------" echo "Installing the required packages..." echo "-----------------------------------" -apt install acl screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl dialog php cifs-utils sudo -y +apt install acl screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl php cifs-utils sudo -y -USER="root" +echo "-----------------------------" +echo "Setting-up Server-APP..." +echo "-----------------------------" - mkdir /media/card - -echo "-----------------------------" -echo "Fetching Little Backup Box..." -echo "-----------------------------" - -cd -git clone https://trans.bprieshof.nl/gitea/brammp/little-backup-box-Bram.git - mkdir /mnt/SMB + cat > /etc/network/if-up.d/mountsmb <<- "EOF" #! /bin/sh mount -t cifs -o username=import,password=importpw,iocharset=utf8,sec=ntlmssp,file_mode=0775,dir_mode=0775 //192.168.2.144/Data /mnt/SMB @@ -48,7 +29,7 @@ EOF cat > /etc/network/if-up.d/startphpweb <<- "EOF" #! /bin/sh -cd /root/little-backup-box-Bram/scripts && php -S 0.0.0.0:8000 & +cd /root/Server-APP/scripts && php -S 0.0.0.0:8000 & exit 0 EOF @@ -56,4 +37,4 @@ echo "---------------------------------------------" echo "All done! The system will reboot in 1 minute." echo "---------------------------------------------" - shutdown -r 1 +shutdown -r 1