1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

move lines to comply linter

This commit is contained in:
Clément 2017-03-05 20:56:16 +01:00
parent 04f4c86137
commit 72b325ebb1

View file

@ -12,16 +12,16 @@ set -eu
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|| ynh_die "Unable to install dependencies"
#old version cleanup
if [ -f $FINAL_PATH/data/user.php.dist ]; then
sudo rm $FINAL_PATH/data/user.php.dist
fi
# Check destination directory
[[ ! -d $FINAL_PATH ]] && ynh_die \
"The destination directory '$FINAL_PATH' does not exist.\
The app is not correctly installed, you should remove it first."
#old version cleanup
if [ -f $FINAL_PATH/data/user.php.dist ]; then
sudo rm $FINAL_PATH/data/user.php.dist
fi
# Create tmp directory and install app inside
TMPDIR=$(ynh_mkdir_tmp)
extract_freshrss "$TMPDIR"