X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4271ab433cd55bbd2612292bcf39e4dc3d7274f1..0907aa4037b12b6b88ee24495d4577a064d4f8db:/projects/stargazer/inst/linux/etc/stargazer/OnConnect diff --git a/projects/stargazer/inst/linux/etc/stargazer/OnConnect b/projects/stargazer/inst/linux/etc/stargazer/OnConnect new file mode 100755 index 00000000..cb1f64f4 --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/OnConnect @@ -0,0 +1,23 @@ +#! /bin/sh + +# About: This script is called when the user successfully authenticated on the server. +# Common Task: Rebuild firewall to allow user to access the Internet. +# Priority: required + +# User login +LOGIN=$1 + +# User IP +IP=$2 + +# User cash +CASH=$3 + +# User ID +ID=$4 + +# Selected DIRs (from rules file) to connect +DIRS=$5 + +# Usage examples: +#echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log \ No newline at end of file