Skip to content

Commit ea1dd45

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/checkout-5
2 parents f152c01 + 7eacb26 commit ea1dd45

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

not-supported/plexmediaserver.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ DIRECTORIES=$(find /mnt/ -mindepth 1 -maxdepth 2 -type d | grep -v "/mnt/ncdata"
7171
mapfile -t DIRECTORIES <<< "$DIRECTORIES"
7272
for directory in "${DIRECTORIES[@]}"
7373
do
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" ]

not-supported/remotedesktop.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ debug_mode
1919
# Check if root
2020
root_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
2330
if ! is_this_installed xrdp
2431
then
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

0 commit comments

Comments
 (0)