mirror of
https://github.com/YunoHost-Apps/borgserver_ynh.git
synced 2024-09-03 20:36:20 +02:00
Merge branch 'testing'
This commit is contained in:
commit
f1c339653f
4 changed files with 13 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Offer backup storage to a friend.",
|
"en": "Offer backup storage to a friend.",
|
||||||
"fr": "Offrez un espace de stockage à un⋅e ami⋅e."
|
"fr": "Offrez un espace de stockage à un⋅e ami⋅e."
|
||||||
},
|
},
|
||||||
"version": "1.1.16~ynh5",
|
"version": "1.1.16~ynh6",
|
||||||
"url": "https://borgbackup.readthedocs.io",
|
"url": "https://borgbackup.readthedocs.io",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -64,6 +64,7 @@ ynh_script_progression --message="Configuring SSH public key for remote connexio
|
||||||
home=/home/$ssh_user
|
home=/home/$ssh_user
|
||||||
mkdir -p /home/$ssh_user/.ssh
|
mkdir -p /home/$ssh_user/.ssh
|
||||||
chmod o=--- /home/$ssh_user
|
chmod o=--- /home/$ssh_user
|
||||||
|
chown -R $ssh_user:$ssh_user /home/$ssh_user
|
||||||
touch /home/$ssh_user/.ssh/authorized_keys
|
touch /home/$ssh_user/.ssh/authorized_keys
|
||||||
extra="--storage-quota $quota"
|
extra="--storage-quota $quota"
|
||||||
if [ "$quota" = "" ]; then
|
if [ "$quota" = "" ]; then
|
||||||
|
|
|
@ -47,6 +47,8 @@ ynh_system_user_create --username=$ssh_user --home_dir=/home/$ssh_user --use_she
|
||||||
|
|
||||||
home=/home/$ssh_user
|
home=/home/$ssh_user
|
||||||
mkdir -p /home/$ssh_user/.ssh
|
mkdir -p /home/$ssh_user/.ssh
|
||||||
|
chmod o=--- /home/$ssh_user
|
||||||
|
chown -R $ssh_user:$ssh_user /home/$ssh_user
|
||||||
touch /home/$ssh_user/.ssh/authorized_keys
|
touch /home/$ssh_user/.ssh/authorized_keys
|
||||||
extra="--storage-quota $quota"
|
extra="--storage-quota $quota"
|
||||||
if [ "$quota" = "" ]; then
|
if [ "$quota" = "" ]; then
|
||||||
|
|
|
@ -100,6 +100,15 @@ ynh_script_progression --message="Upgrading borgbackup..." --weight=1
|
||||||
|
|
||||||
install_borg_with_pip
|
install_borg_with_pip
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# AUTORIZE SSH FOR THIS USER
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Seting good permissions..."
|
||||||
|
|
||||||
|
mkdir -p /home/$ssh_user/.ssh
|
||||||
|
chmod o=--- /home/$ssh_user
|
||||||
|
chown -R $ssh_user:$ssh_user /home/$ssh_user
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# AVOID BACKUP OF BACKUP
|
# AVOID BACKUP OF BACKUP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue