Commit f61f4c83 authored by Haarst, Jan van's avatar Haarst, Jan van
Browse files

Script to add .plan file on first login.

parent e6554939
#!/bin/bash
# Small program to check for a .plan file, and create it if it doesn't.
PLAN=~/.plan
AD_group_ID=16777729
if [ ! -s $PLAN ] && [ "`id -g`" == ${AD_group_ID} ]
then
echo -n "Please enter your full name [ENTER]: "
read fullname
echo -n "Please enter the name of your supervisor and press [ENTER]: "
read RP
echo "Fullname: " "${fullname}" > $PLAN
echo "Supervisor: " "${RP}" >> $PLAN
echo "Information stored in ${PLAN}, please update if changed in the future"
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment