mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
Fix linter warnings
This commit is contained in:
parent
15c16b9eb3
commit
bdc16a9bfc
4 changed files with 18 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "server",
|
"name": "server",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "What is the domain name of the host server where backups will be sent?",
|
"en": "What is the domain name of the host server where backups will be sent?",
|
||||||
"fr": "Quel est le nom de domaine du serveur distant sur lequel seront envoyés les sauvegardes ?"
|
"fr": "Quel est le nom de domaine du serveur distant sur lequel seront envoyés les sauvegardes ?"
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ssh_user",
|
"name": "ssh_user",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Which SSH username should be used to connect to the host server?",
|
"en": "Which SSH username should be used to connect to the host server?",
|
||||||
"fr": "Quel utilisateur faut-il utiliser pour se connecter au serveur distant ?"
|
"fr": "Quel utilisateur faut-il utiliser pour se connecter au serveur distant ?"
|
||||||
|
@ -77,6 +79,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "apps",
|
"name": "apps",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Which apps should Borg backup (list separated by comma or 'all')?",
|
"en": "Which apps should Borg backup (list separated by comma or 'all')?",
|
||||||
"fr": "Quelles applications doivent être sauvegardées par Borg (liste séparée par virgule ou 'all' ?"
|
"fr": "Quelles applications doivent être sauvegardées par Borg (liste séparée par virgule ou 'all' ?"
|
||||||
|
@ -85,6 +88,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "on_calendar",
|
"name": "on_calendar",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "With which regular time schedule should the backups be performed? (see systemd OnCalendar format)",
|
"en": "With which regular time schedule should the backups be performed? (see systemd OnCalendar format)",
|
||||||
"fr": "À quelle fréquence les sauvegardes doivent-elles être effectuées ? (voir le format OnCalendar de systemd)"
|
"fr": "À quelle fréquence les sauvegardes doivent-elles être effectuées ? (voir le format OnCalendar de systemd)"
|
||||||
|
|
|
@ -70,7 +70,7 @@ systemctl start $app.timer
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app
|
yunohost service add $app --description="Deduplicating backup program"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERATE SSH KEY
|
# GENERATE SSH KEY
|
||||||
|
|
|
@ -15,6 +15,17 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||||
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Removing $app service integration..."
|
||||||
|
yunohost service remove $app
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -26,7 +37,7 @@ ynh_remove_app_dependencies
|
||||||
# REMOVE FILES
|
# REMOVE FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
systemctl stop $app.timer
|
systemctl stop $app.timer
|
||||||
systemctl disable $app.timer
|
systemctl disable $app.timer --quiet
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
ynh_secure_remove "/etc/systemd/system/$app.timer"
|
ynh_secure_remove "/etc/systemd/system/$app.timer"
|
||||||
ynh_secure_remove "/usr/local/bin/backup-with-$app"
|
ynh_secure_remove "/usr/local/bin/backup-with-$app"
|
||||||
|
|
|
@ -87,7 +87,7 @@ systemctl start $app.timer
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
yunohost service add $app
|
yunohost service add $app --description="Deduplicating backup program"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue