A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
17 lines
456 B
Bash
Executable File
17 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
|
|
copyFolder()
|
|
{
|
|
local folder="$1"
|
|
local folder_name=$(basename "$folder")
|
|
local save_dir="$2"
|
|
local user_name="$3"
|
|
local clean_dir=$(echo "$save_dir" | sed 's#//*#/#g')
|
|
|
|
local result=$(sudo cp -rf "$folder" "$save_dir")
|
|
checkSuccess "Coping $folder_name to $save_dir"
|
|
|
|
local result=$(sudo chown $user_name:$user_name "$save_dir/$folder_name")
|
|
checkSuccess "Updating $folder_name with $user_name ownership"
|
|
}
|