diff --git a/generic/opt/bin/run b/generic/opt/bin/run index f0f1610..8c23019 100755 --- a/generic/opt/bin/run +++ b/generic/opt/bin/run @@ -3,7 +3,7 @@ # print license activation help for new users if [ ! -f "$HOME/license.txt" ]; then - cat "/opt/share/activate.txt" + source "/opt/share/activate.sh" fi # set working directory diff --git a/generic/opt/share/activate.sh b/generic/opt/share/activate.sh new file mode 100755 index 0000000..efba60d --- /dev/null +++ b/generic/opt/share/activate.sh @@ -0,0 +1,34 @@ +#!/bin/sh + + +echo " +-------------------------------------------------------------------------------- + +Hello! Do you need help Getting Started? + +# FAQ +https://www.filebot.net/linux/docker.html + +# Read License Key from Console +docker run --rm -it -v data:/data -e PUID=$(id -u) -e PGID=$(id -g) rednoah/filebot --license + +-------------------------------------------------------------------------------- +" + + +if [ "$EUID" -eq 0 ]; then + echo -e ' + \033[38;5;202m + !!! YOU ARE RUNNING AS ROOT AND NOT AS NORMAL USER !!! + \033[0m + ' +fi + + +echo -e " +\033[38;5;40m +USER=$(id -un)($(id -u)) +HOME=$HOME +\033[0m +" + diff --git a/generic/opt/share/activate.txt b/generic/opt/share/activate.txt deleted file mode 100644 index 98a528c..0000000 --- a/generic/opt/share/activate.txt +++ /dev/null @@ -1,13 +0,0 @@ - --------------------------------------------------------------------------------- - -Hello! Do you need help Getting Started? - -# FAQ -https://www.filebot.net/linux/docker.html - -# Read License Key from Console -docker run --rm -it -v data:/data rednoah/filebot --license - --------------------------------------------------------------------------------- -