Skip to content

Commit

Permalink
YOU ARE RUNNING AS ROOT AND NOT AS NORMAL USER
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Apr 13, 2024
1 parent b7a6eaa commit d8f078f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
2 changes: 1 addition & 1 deletion generic/opt/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions generic/opt/share/activate.sh
Original file line number Diff line number Diff line change
@@ -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
"

13 changes: 0 additions & 13 deletions generic/opt/share/activate.txt

This file was deleted.

0 comments on commit d8f078f

Please sign in to comment.