File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33
4- MOUNT_SRC=//192.168.50.7/disk
4+ # MOUNT_SRC=//192.168.50.33/disk
5+ # MOUNT_SRC=//LANDISK-0197E5.local/disk
6+ # MOUNT_USER=admin
7+ # MOUNT_PASS=
8+
9+ MOUNT_SRC=//LANDISK-C35758.local/disk1
10+ MOUNT_USER=admin
11+ MOUNT_PASS=admin
12+
513MOUNT_POINT=/mnt/Landisk/
614
715BACKUP_FROM=${MOUNT_POINT}
@@ -87,7 +95,7 @@ function _check_mount_landisk () {
8795 else
8896 # not mounted
8997 echo " not mounted Landisk. --> do mount..." >> ${WORK_LOG_PATH}
90- sudo mount -t cifs -o sec=ntlm,vers=1.0 -o username=admin ,password= ${MOUNT_SRC} ${MOUNT_POINT} >> ${WORK_LOG_PATH} 2>&1
98+ sudo mount -t cifs -o sec=ntlm,vers=1.0 -o username=${MOUNT_USER} ,password=${MOUNT_PASS} ${MOUNT_SRC} ${MOUNT_POINT} >> ${WORK_LOG_PATH} 2>&1
9199 if [ $? -eq 0 ]; then
92100 echo " mount OK" >> ${WORK_LOG_PATH}
93101 return 0
You can’t perform that action at this time.
0 commit comments