updated sed for path since it has /

This commit is contained in:
2020-11-17 20:28:11 -05:00
parent 29a885efb6
commit 5f799abfd6
2 changed files with 2 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "duplicacy", "name": "duplicacy",
"version": "20201117.4", "version": "20201117.5",
"slug": "duplicacy", "slug": "duplicacy",
"description": "Duplicacy backup", "description": "Duplicacy backup",
"arch": ["armhf", "armv7"], "arch": ["armhf", "armv7"],

View File

@@ -17,16 +17,13 @@ FILTERS=$(jq --raw-output ".filters" $CONFIG_PATH)
# create the filters file # create the filters file
touch /.duplicacy/filters touch /.duplicacy/filters
# test
sed --help
# edit the /.duplicacy/preferences file # edit the /.duplicacy/preferences file
sed --in-place 's/<BACKUP_ID>/'${BACKUP_ID}'/' /.duplicacy/preferences sed --in-place 's/<BACKUP_ID>/'${BACKUP_ID}'/' /.duplicacy/preferences
sed --in-place 's/<PROTOCOL>/'${PROTOCOL}'/' /.duplicacy/preferences sed --in-place 's/<PROTOCOL>/'${PROTOCOL}'/' /.duplicacy/preferences
sed --in-place 's/<SSH_USERNAME>/'${SSH_USERNAME}'/' /.duplicacy/preferences sed --in-place 's/<SSH_USERNAME>/'${SSH_USERNAME}'/' /.duplicacy/preferences
sed --in-place 's/<SSH_PASSWORD>/'${SSH_PASSWORD}'/' /.duplicacy/preferences sed --in-place 's/<SSH_PASSWORD>/'${SSH_PASSWORD}'/' /.duplicacy/preferences
sed --in-place 's/<BACKUP_SERVER>/'${BACKUP_SERVER}'/' /.duplicacy/preferences sed --in-place 's/<BACKUP_SERVER>/'${BACKUP_SERVER}'/' /.duplicacy/preferences
sed --in-place 's/<BACKUP_SERVER_PATH>/'${BACKUP_SERVER_PATH}'/' /.duplicacy/preferences sed --in-place 's~<BACKUP_SERVER_PATH>~'${BACKUP_SERVER_PATH}'~' /.duplicacy/preferences
echo $FILTERS echo $FILTERS