Commit Graph

27 Commits

Author SHA1 Message Date
Jeremy Gardais 606e534f77
Ensure to include sudoers.d in the main config 2019-05-28 14:48:48 +02:00
Jeremy Gardais 929a6bde98
Test if sudoers.d is include in the main config 2019-05-28 14:36:14 +02:00
Jeremy Gardais c626de49d7
Comment purpose of the function 2019-05-28 14:19:35 +02:00
Jeremy Gardais d89625df6f
Set an explicit name for the functions 2019-05-28 14:10:47 +02:00
Jeremy Gardais c1e7d54ad1
Test if a backup user is available from a list 2019-05-28 14:07:44 +02:00
Jeremy Gardais e0e6800c3c
Prefix sudoers related to backuppc with BACKUP_ 2019-05-28 13:59:01 +02:00
Jeremy Gardais 4d3bfc9730
Don't use EUID var that can already be defined 2019-05-28 13:54:12 +02:00
Jeremy Gardais e374edcb74
Manage main directory with global var
Get value from a function doesn't want to work with bash on ubuntu on
Windows 10…
2019-05-27 13:48:09 +02:00
Jeremy Gardais 181f06a8fd
Ask to user for the main directory to backup 2019-05-07 16:06:16 +02:00
Jeremy Gardais 2342d87d7e
Ensure to restart ssh service 2019-05-07 11:39:56 +02:00
Jeremy Gardais d8e87ee1bc
Manage ssh auth_key for BackupPC's user 2019-05-07 11:26:19 +02:00
Jeremy Gardais 134c18ff04
Create user for backuppc 2019-05-06 17:13:28 +02:00
Jeremy Gardais e5cb0625c7
Set apt/aptitude quieter 2019-05-06 15:48:16 +02:00
Jeremy Gardais a641f8b125
Add some colors in diplayed messages 2019-05-06 15:39:17 +02:00
Jeremy Gardais 72e0dfed86
Ensure to install sshd 2019-05-06 15:34:58 +02:00
Jeremy Gardais 13e44b6661
Init install script for Windows and manage APT 2019-05-06 11:36:11 +02:00
Jeremy Gardais 6d78838d8a
Give sudo permissions for both backup and backuppc user 2018-06-14 15:45:28 +02:00
Jeremy Gardais 6a62d2ff26
Contact the admin if error 2018-05-28 18:11:05 +02:00
Jeremy Gardais 82786179eb
Disable DEBUG mode 2018-05-28 17:52:45 +02:00
Jeremy Gardais 4483ba3ecc
Add sudoers configuration 2018-05-28 17:52:23 +02:00
Jeremy Gardais e21864990d
Test is_sudoers_line result 2018-05-28 17:31:54 +02:00
Jeremy Gardais 8bc6853b6c
No exit with error if don't find sudoers line
This way, actions can be done with the result (eg. add the line,…).
2018-05-28 17:00:21 +02:00
Jeremy Gardais 4123be0626
Disable DEBUG mode 2018-05-28 16:33:20 +02:00
Jeremy Gardais 764b9e6c94
Add a script in order to fix backuppc sudo rights 2018-05-28 16:22:36 +02:00
Jeremy Gardais 641eaf5ae6
Keep zip file 2018-05-15 14:53:48 +02:00
Jeremy Gardais f4282a1b7c
Add windows installer for client 2018-05-15 14:27:16 +02:00
Jeremy Gardais 2e51ca6e76
Create a directory to separate server/client 2018-05-15 14:25:21 +02:00