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

simpler post_install

This commit is contained in:
Salamandar 2024-05-26 12:59:04 +02:00
parent 6cb309b83d
commit 7c7c50927c

View file

@ -4,12 +4,12 @@ __PUBLIC_KEY__
Do so by running those commands on __SERVER__ with user __SSH_USER__:
```
mkdir ~/.ssh 2>/dev/null
touch ~/.ssh/authorized_keys
chmod u=rw,go= ~/.ssh/authorized_keys
cat << EOPKEY >> ~/.ssh/authorized_keys
__PUBLIC_KEY__
EOPKEY
echo "__PUBLIC_KEY__" >> ~/.ssh/authorized_keys
```
Also make sure __BACKUP_PATH__ exists and is writable by __SSH_USER__