1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/archivist_ynh.git synced 2024-09-03 18:15:55 +02:00

Update v0.

This commit is contained in:
Maniack Crudelis 2017-11-03 17:19:04 +01:00
parent 2b2793737d
commit 8307fee13b
5 changed files with 14 additions and 14 deletions

View file

@ -13,7 +13,7 @@ It can also makes backups of specified directories.
Your backups can be send to many other places, local or distant.
Archivist is automatically launched periodicaly to update your backups and send the modifications to the other places.
**Shipped version:** 0.2
**Shipped version:** 0.3
## Screenshots

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/maniackcrudelis/archivist/archive/v0.2.tar.gz
SOURCE_SUM=25cdcd97bcb449e3b649e23a68ace0af
SOURCE_URL=https://github.com/maniackcrudelis/archivist/archive/v0.3.tar.gz
SOURCE_SUM=dedc9e77677b8a65553873e91eeeaeae
SOURCE_SUM_PRG=md5sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Automatic backups.",
"fr": "Sauvegardes automatiques."
},
"version": "0.1",
"version": "0.3",
"url": "https://github.com/maniackcrudelis/archivist",
"license": "GPL-3.0",
"maintainer": {

View file

@ -124,15 +124,15 @@ cp ../conf/cron /etc/cron.d/$app
ynh_replace_string "__FINALPATH__" "$final_path" /etc/cron.d/$app
ynh_replace_string "__APP__" "$app" /etc/cron.d/$app
if [ "$frequency" = "Daily" ]; then
cron_freq="0 0 * * *"
cron_freq="0 2 * * *"
elif [ "$frequency" = "Each 3 days" ]; then
cron_freq="0 0 */3 * *"
cron_freq="0 2 */3 * *"
elif [ "$frequency" = "Weekly" ]; then
cron_freq="0 0 * * 0"
cron_freq="0 2 * * 0"
elif [ "$frequency" = "Biweekly" ]; then
cron_freq="0 0 * * 0/2"
cron_freq="0 2 * * 0/2"
else # Monthly
cron_freq="0 0 1 * *"
cron_freq="0 2 1 * *"
fi
ynh_replace_string "__FREQUENCY__" "$cron_freq" /etc/cron.d/$app

View file

@ -47,15 +47,15 @@ cp ../conf/cron /etc/cron.d/$app
ynh_replace_string "__FINALPATH__" "$final_path" /etc/cron.d/$app
ynh_replace_string "__APP__" "$app" /etc/cron.d/$app
if [ "$frequency" = "Daily" ]; then
cron_freq="0 0 * * *"
cron_freq="0 2 * * *"
elif [ "$frequency" = "Each 3 days" ]; then
cron_freq="0 0 */3 * *"
cron_freq="0 2 */3 * *"
elif [ "$frequency" = "Weekly" ]; then
cron_freq="0 0 * * 0"
cron_freq="0 2 * * 0"
elif [ "$frequency" = "Biweekly" ]; then
cron_freq="0 0 * * 0/2"
cron_freq="0 2 * * 0/2"
else # Monthly
cron_freq="0 0 1 * *"
cron_freq="0 2 1 * *"
fi
ynh_replace_string "__FREQUENCY__" "$cron_freq" /etc/cron.d/$app