Fix code ; Added chmod to setup

This commit is contained in:
Cyrille L 2022-03-22 15:45:21 +01:00
parent aba78b8c4d
commit 8c65014654
4 changed files with 9 additions and 7 deletions

View File

@ -87,8 +87,9 @@ echo -ne " Owner $setup_user:"
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
&& cmd_res="$?" \
&& filebox__check_err
sudo chmod 755 "$set_bin_uri"
echo -e "\n# Thank you for installing filebox. Have fun"
echo -e "\n# Thank you for installing filebox. Have fun !"
}
# PWD is Not a repo

View File

@ -1,12 +1,12 @@
#!/bin/bash
# version: 0.1.2
# version: 0.1.3
# file: filebox
# Folder: /usr/local/bin
# By echolib
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
#======================================================================
# Tool
# Tools
#======================================================================
# Check needed file and source if asked
if__file() {
@ -59,7 +59,7 @@ esac
# Check Command
if__command() {
! [[ `command -v $1` ]] \
&& echo -e "$I_Red Missing $1 commnd" \
&& echo -e "$I_Red Missing $1 command" \
&& exit 1
}

View File

@ -1,10 +1,10 @@
#!/bin/bash
# file: tools
# Folder: /var/lib/seedbox/scripts
# Folder: /var/lib/filebox/scripts
# By echolib
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
# Tools for seedbox script
# Tools for filebox script
#======================================================================
# Set Colors

View File

@ -87,8 +87,9 @@ echo -ne " Owner $setup_user:"
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
&& cmd_res="$?" \
&& filebox__check_err
sudo chmod 755 "$set_bin_uri"
echo -e "\n# Thank you for installing filebox. Have fun"
echo -e "\n# Thank you for installing filebox. Have fun !"
}
# PWD is Not a repo