Add an installer and update command
curl -fsSL https://federated.sh/mac | bash install.sh checks the Mac (macOS 13+, not root, internet; warns if the account isn't an administrator), then downloads the latest commit as an archive from Gitea, as macOS has no git without the Command Line Tools. It installs into ~/.local/share/federated-connector/connector, links configure and update into ~/.local/bin and puts that on PATH at the top of ~/.zprofile and ~/.bash_profile, then offers to run configure. Piped into bash, it runs only once read in full, and asks from /dev/tty. The folder never moves, so the backup and storage jobs and the Federated Backup app (with its Full Disk Access) keep pointing at it. update shows the commits since the installed one and swaps the new files in with two renames. If configure ran from another folder before, the installer says what still runs from there; backup and storage now show as to do until they're set up again from the installed copy. smoketest: 05-install pipes install.sh into bash with the working copy, runs update, then installs the published version from Gitea. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,9 +33,11 @@ backups_on() {
|
||||
[ -n "$RESTIC_PASSWORD_COMMAND" ] && job_loaded
|
||||
}
|
||||
|
||||
# Done when backing up to the main Core
|
||||
# Done when backing up to the main Core, with the app running this copy's
|
||||
# script (not one in a folder configure ran from before it was installed)
|
||||
is_configured() {
|
||||
backups_on && [ "$BACKUP_WEBDAV" = "https://nextcloud.$CORE_DOMAIN/remote.php/dav/files/${CORE_EMAIL%@*}" ]
|
||||
backups_on && [ "$BACKUP_WEBDAV" = "https://nextcloud.$CORE_DOMAIN/remote.php/dav/files/${CORE_EMAIL%@*}" ] \
|
||||
&& backup_app_current
|
||||
}
|
||||
|
||||
save_secret() {
|
||||
|
||||
Reference in New Issue
Block a user