Compare commits

...

2 commits

Author SHA1 Message Date
Kroese
c8b4cb9c14
feat: Surpress errors when setting permissions (#1422) 2025-09-23 16:55:11 +02:00
Kroese
5425783f5c
feat: Update information (#1421) 2025-09-23 16:17:31 +02:00
2 changed files with 5 additions and 5 deletions

View file

@ -460,7 +460,7 @@ getESD() {
error "Invalid VERSION specified, value \"$version\" is not recognized!" && return 1
fi
local msg="Downloading product information..."
local msg="Downloading catalog..."
info "$msg" && html "$msg"
rm -rf "$dir"

View file

@ -111,10 +111,10 @@ for dir in "${dirs[@]}"; do
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
done
# Fix Samba permissions
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores
[ -d /var/cache/samba/msg.lock ] && chmod -R 0755 /var/cache/samba/msg.lock
# Try to fix Samba permissions
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock 2>/dev/null || :
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores 2>/dev/null || :
[ -d /var/cache/samba/msg.lock ] && chmod -R 0755 /var/cache/samba/msg.lock 2>/dev/null || :
if ! smbd; then
error "Samba daemon failed to start!"