updated sed for path since it has /
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user