From 8542fa5fa13c9ef9bbde26ec4d6eb7d64fd0d864 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Thu, 24 Mar 2022 17:57:13 +0100 Subject: [PATCH] Fix setup --- setup.sh | 17 ++++++++--------- usr/local/bin/filebox | 2 +- var/lib/filebox/scripts/updater | 1 - var/lib/filebox/setup.sh | 17 ++++++++--------- 4 files changed, 17 insertions(+), 20 deletions(-) diff --git a/setup.sh b/setup.sh index 66b3613..4bfffda 100644 --- a/setup.sh +++ b/setup.sh @@ -9,25 +9,24 @@ unset ${!setup_@} #---------------------------------------------------------------------- # Configuration ; folders and files to create/chown/copy... #---------------------------------------------------------------------- +# Directories to check ONLY with mkdir -p +setup_dir_bin="usr/local/bin" +# main app name +setup_app_name="filebox" +# bin uri +set_bin_uri="$setup_dir_bin/$setup_app_name" + # Directories to CHOWN -R set_dir_R_CHO=( var/lib/filebox -etc/filbox +etc/filebox ) -# Directories to check ONLY with mkdir -p -setup_dir_bin="usr/local/bin" - -# main app name -setup_app_name="filebox" # filename application to CHOWN + CHMOD 755 set_files_R_CHO=( upd ) -# bin uri -set_bin_uri="$setup_dir_bin/$setup_file_bin" - #====================================================================== #---------------------- diff --git a/usr/local/bin/filebox b/usr/local/bin/filebox index ffca61e..c760bf1 100755 --- a/usr/local/bin/filebox +++ b/usr/local/bin/filebox @@ -1,5 +1,5 @@ #!/bin/bash -# version: 0.1.4 +# version: 0.1.5 # file: filebox # Folder: /usr/local/bin # By echolib diff --git a/var/lib/filebox/scripts/updater b/var/lib/filebox/scripts/updater index 10dd240..07dac4e 100644 --- a/var/lib/filebox/scripts/updater +++ b/var/lib/filebox/scripts/updater @@ -22,7 +22,6 @@ else fi printf -v versions '%s\n%s' "$v_cur" "$v_onl" - [[ `sort -V <<< "$versions" | tail -1` == $v_cur ]] \ && return diff --git a/var/lib/filebox/setup.sh b/var/lib/filebox/setup.sh index 66b3613..4bfffda 100644 --- a/var/lib/filebox/setup.sh +++ b/var/lib/filebox/setup.sh @@ -9,25 +9,24 @@ unset ${!setup_@} #---------------------------------------------------------------------- # Configuration ; folders and files to create/chown/copy... #---------------------------------------------------------------------- +# Directories to check ONLY with mkdir -p +setup_dir_bin="usr/local/bin" +# main app name +setup_app_name="filebox" +# bin uri +set_bin_uri="$setup_dir_bin/$setup_app_name" + # Directories to CHOWN -R set_dir_R_CHO=( var/lib/filebox -etc/filbox +etc/filebox ) -# Directories to check ONLY with mkdir -p -setup_dir_bin="usr/local/bin" - -# main app name -setup_app_name="filebox" # filename application to CHOWN + CHMOD 755 set_files_R_CHO=( upd ) -# bin uri -set_bin_uri="$setup_dir_bin/$setup_file_bin" - #====================================================================== #----------------------