1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

Fix paths in installed scripts

This commit is contained in:
Salamandar 2024-05-26 15:28:00 +02:00
parent daad20e8ba
commit 295c7373e4
5 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ RESTIC_PATH=$(yunohost app setting {{ app }} backup_path)
RESTIC_PASSWORD="$(yunohost app setting {{ app }} passphrase)" RESTIC_PASSWORD="$(yunohost app setting {{ app }} passphrase)"
RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/ RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/
RESTIC_COMMAND=/usr/local/bin/{{ app }} RESTIC_COMMAND={{ install_dir }}/{{ app }}
LOGFILE=/var/log/restic_backup_{{ app }}.log LOGFILE=/var/log/restic_backup_{{ app }}.log
ERRFILE=/var/log/restic_backup_{{ app }}.err ERRFILE=/var/log/restic_backup_{{ app }}.err

View file

@ -10,7 +10,7 @@ RESTIC_PATH=$(yunohost app setting {{ app }} backup_path)
RESTIC_PASSWORD="$(yunohost app setting {{ app }} passphrase)" RESTIC_PASSWORD="$(yunohost app setting {{ app }} passphrase)"
RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/ RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/
RESTIC_COMMAND=/usr/local/bin/{{ app }} RESTIC_COMMAND={{ install_dir }}/{{ app }}
do_check() { do_check() {

View file

@ -4,8 +4,8 @@ After=network.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/local/bin/backup-with-__APP__ ExecStart=__INSTALL_DIR__/backup-with-__APP__
ExecStartPost=/opt/yunohost/__APP__/restic_log___APP__ ExecStartPost=__INSTALL_DIR__/restic_log___APP__
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__

View file

@ -5,7 +5,7 @@ After=network.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=__INSTALL_DIR__/check-__APP__ ExecStart=__INSTALL_DIR__/check-__APP__
ExecStartPost=/opt/yunohost/__APP__/restic_check_log___APP__ 0 ExecStartPost=__INSTALL_DIR__/restic_check_log___APP__ 0
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__

View file

@ -5,7 +5,7 @@ After=network.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=__INSTALL_DIR__/check-__APP__ "1" ExecStart=__INSTALL_DIR__/check-__APP__ "1"
ExecStartPost=/opt/yunohost/__APP__/restic_check_log___APP__ 1 ExecStartPost=__INSTALL_DIR__/restic_check_log___APP__ 1
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__