mirror of
https://github.com/YunoHost-Apps/gitlab-runner_ynh.git
synced 2024-09-03 19:15:58 +02:00
Update _common.sh
This commit is contained in:
parent
7063fb1700
commit
1b36c52598
1 changed files with 0 additions and 14 deletions
|
@ -12,13 +12,6 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore a previous backup if the action process failed
|
# Restore a previous backup if the action process failed
|
||||||
#
|
|
||||||
# usage:
|
|
||||||
# ynh_backup_before_action
|
|
||||||
#REMOVEME? # ynh_clean_setup () {
|
|
||||||
# ynh_restore_actionbackup
|
|
||||||
# }
|
|
||||||
#REMOVEME? # ynh_abort_if_errors
|
|
||||||
ynh_restore_actionbackup () {
|
ynh_restore_actionbackup () {
|
||||||
echo "Action failed." >&2
|
echo "Action failed." >&2
|
||||||
local app_bck=${app//_/-} # Replace all '_' by '-'
|
local app_bck=${app//_/-} # Replace all '_' by '-'
|
||||||
|
@ -42,13 +35,6 @@ ynh_restore_actionbackup () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Make a backup in case of failed action
|
# Make a backup in case of failed action
|
||||||
#
|
|
||||||
# usage:
|
|
||||||
# ynh_backup_before_action
|
|
||||||
#REMOVEME? # ynh_clean_setup () {
|
|
||||||
# ynh_restore_actionbackup
|
|
||||||
# }
|
|
||||||
#REMOVEME? # ynh_abort_if_errors
|
|
||||||
ynh_backup_before_action () {
|
ynh_backup_before_action () {
|
||||||
if [ ! -e "/etc/yunohost/apps/$app/scripts/backup" ]
|
if [ ! -e "/etc/yunohost/apps/$app/scripts/backup" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue