File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ DIRECTORIES=$(find /mnt/ -mindepth 1 -maxdepth 2 -type d | grep -v "/mnt/ncdata"
7171mapfile -t DIRECTORIES <<< " $DIRECTORIES"
7272for directory in " ${DIRECTORIES[@]} "
7373do
74+ # Open directory to make sure that it is accessible
75+ ls " $directory " & > /dev/null
76+
77+ # Continue with the logic
7478 if mountpoint -q " $directory " && [ " $( stat -c ' %a' " $directory " ) " = " 770" ]
7579 then
7680 if [ " $( stat -c ' %U' " $directory " ) " = " www-data" ] && [ " $( stat -c ' %G' " $directory " ) " = " www-data" ]
Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ debug_mode
1919# Check if root
2020root_check
2121
22+ # Don't run this script as root user, because we will need the account
23+ if [ -z " $UNIXUSER " ]
24+ then
25+ msg_box " Please don't run this script as pure root user!"
26+ exit 1
27+ fi
28+
2229# Check if xrdp is installed
2330if ! is_this_installed xrdp
2431then
2532 # Ask for installing
2633 install_popup " $SCRIPT_NAME "
2734 XRDP_INSTALL=1
28-
29- # Don't run this script as root user, because we will need the account
30- if [ -z " $UNIXUSER " ]
31- then
32- msg_box " Please don't run this script as pure root user!"
33- exit 1
34- fi
3535
3636 # Check if gnome-session is installed
3737 if ! is_this_installed gnome-session
You can’t perform that action at this time.
0 commit comments