mirror of
https://github.com/YunoHost-Apps/fider_ynh.git
synced 2024-09-03 18:36:11 +02:00
Advertise helpers temporary inclusion in _common.sh
This commit is contained in:
parent
eafe4235f4
commit
c100968d8b
1 changed files with 19 additions and 7 deletions
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# YUNOHOST 2.6 FORTHCOMING HELPERS
|
||||||
|
# (will be part of YunoHost 2.6, so won't be necessary any more after
|
||||||
|
# YunoHost 2.6 gets widespread)
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
# Normalize the url path syntax
|
# Normalize the url path syntax
|
||||||
# Handle the slash at the beginning of path and its absence at ending
|
# Handle the slash at the beginning of path and its absence at ending
|
||||||
# Return a normalized url path
|
# Return a normalized url path
|
||||||
|
@ -532,6 +538,19 @@ ynh_backup_if_checksum_is_different () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# This is not an official helper, just an abstract helper to prepare to the new one.
|
||||||
|
ynh_restore_file () {
|
||||||
|
sudo cp -a "${backup_dir}$1" "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# YUNOHOST 2.6 FORTHCOMING HELPERS
|
||||||
|
# (will be part of YunoHost 2.6, so won't be necessary any more after
|
||||||
|
# YunoHost 2.6 gets widespread)
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
#
|
#
|
||||||
# usage: ynh_add_nginx_config
|
# usage: ynh_add_nginx_config
|
||||||
|
@ -638,10 +657,3 @@ ynh_remove_systemd_config () {
|
||||||
ynh_secure_remove "$finalsystemdconf"
|
ynh_secure_remove "$finalsystemdconf"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
|
||||||
|
|
||||||
# This is not an official helper, just an abstract helper to prepare to the new one.
|
|
||||||
ynh_restore_file () {
|
|
||||||
sudo cp -a "${backup_dir}$1" "$1"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue