I Have created the following shell script.
#!/bin/bash
...
#Cleanup
sudo update-rc.d mysql defaults
sudo update-rc.d apache2 defaults
ln -s /etc/drupal/7 /home/$USER/drupal
exit
Now I'd like to create the symbolic link for the user with uid 1000 but not for the root user.
What code whould help?
Thank you for any ideas
Josh
You can use getent to resolve the user name for 1000.
Then check if directory exists.
note:
you can go one farther, and use
to get the correct home dir for the user.