No more duplicity
This commit is contained in:
parent
31f4fffc22
commit
98c4a596ea
|
@ -779,6 +779,11 @@ function create_restore_script {
|
|||
fi
|
||||
apt-get -y --force-yes install rsyncrypto
|
||||
|
||||
get_mariadb_password
|
||||
get_mariadb_gnusocial_admin_password
|
||||
get_mariadb_redmatrix_admin_password
|
||||
get_mariadb_owncloud_admin_password
|
||||
|
||||
echo '#!/bin/bash' > /usr/bin/$RESTORE_SCRIPT_NAME
|
||||
echo '' >> /usr/bin/$RESTORE_SCRIPT_NAME
|
||||
echo "if [ ! -b $USB_DRIVE ]; then" >> /usr/bin/$RESTORE_SCRIPT_NAME
|
||||
|
@ -949,7 +954,7 @@ function backup_to_friends_servers {
|
|||
return
|
||||
fi
|
||||
|
||||
apt-get -y --force-yes install duplicity
|
||||
apt-get -y --force-yes install rsyncrypto
|
||||
|
||||
get_mariadb_password
|
||||
get_mariadb_gnusocial_admin_password
|
||||
|
@ -1138,6 +1143,13 @@ function restore_from_friend {
|
|||
return
|
||||
fi
|
||||
|
||||
apt-get -y --force-yes install rsyncrypto
|
||||
|
||||
get_mariadb_password
|
||||
get_mariadb_gnusocial_admin_password
|
||||
get_mariadb_redmatrix_admin_password
|
||||
get_mariadb_owncloud_admin_password
|
||||
|
||||
if ! grep -q "restore from a friend's server" /home/$MY_USERNAME/README; then
|
||||
echo '' >> /home/$MY_USERNAME/README
|
||||
echo '' >> /home/$MY_USERNAME/README
|
||||
|
|
Loading…
Reference in New Issue