Changed to hostname -f in backuptool
This commit is contained in:
parent
5c9eb0aea0
commit
c87df1d263
@ -53,6 +53,7 @@ listbackup_system() {
|
||||
listbackup_allservices() {
|
||||
echo "* Listing backup files for all services.."
|
||||
for i in "${SERVICES[@]}"; do
|
||||
[ ! -d "/federated/apps/$i" ] && echo "$i not installed, skipping." && continue
|
||||
echo "* Listing backup files for /federated/apps/$i.."
|
||||
PASSPHRASE=$GPG_PASSPHRASE duplicity list-current-files b2://$B2_APPLICATION_KEY_ID:$B2_APPLICATION_KEY@fed-customers/$UUID/federated/apps/$i/
|
||||
[ $? -ne 0 ] && failcheck "* Couldn't list backup files"
|
||||
@ -391,7 +392,7 @@ if [ -f "/etc/federated" ]; then
|
||||
[ -z "$B2_APPLICATION_KEY_ID" ] && failcheck "/etc/federated doesn't include B2_APPLICATION_KEY_ID for backups"
|
||||
[ -z "$B2_APPLICATION_KEY" ] && failcheck "/etc/federated doesn't include B2_APPLICATION_KEY for backups"
|
||||
[ -z "$DOMAIN" ] && failcheck "/etc/federated doesn't include DOMAIN for backups"
|
||||
[[ ! "$BACKUPHOST" ]] && UUID=$(hostname) || UUID="$BACKUPHOST"
|
||||
[[ ! "$BACKUPHOST" ]] && UUID=$(hostname -f) || UUID="$BACKUPHOST"
|
||||
else
|
||||
failcheck "Could not find an /etc/federated file."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user