1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-10 12:27:40 +02:00

Set permissions on parent directory

This commit is contained in:
billz 2025-03-02 00:10:43 -08:00
parent 313e2eb06f
commit 3c8cf996b5

View File

@ -46,7 +46,7 @@ case "$action" in
username=$1
password=$2
if id "$username" &>/dev/null; then # user already exists
echo "OK"
exit 0
@ -72,6 +72,7 @@ case "$action" in
fi
mkdir -p "$(dirname "$destination")"
chown -R "$raspap_user:$raspap_user" "$(dirname "$destination")"
cp "$source" "$destination"
chown -R $raspap_user:$raspap_user "$destination"