vm/static/change-root-profile.sh
Florian Keller b2f1a6bd88 Code Cleanup (#36)
* Cleanup
+ Replaced tabs with spaces
+ Unified if .. then
+ Fixed typo in 'DOCTYPE'
+ Unified indentation

* Cleanup: More indentation fixes
2016-09-25 22:48:36 +02:00

32 lines
447 B
Bash

#!/bin/bash
ROOT_PROFILE="/root/.bash_profile"
rm /root/.profile
cat <<-ROOT-PROFILE > "$ROOT_PROFILE"
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]
then
if [ -f ~/.bashrc ]
then
. ~/.bashrc
fi
fi
if [ -x /var/scripts/nextcloud-startup-script.sh ]
then
/var/scripts/nextcloud-startup-script.sh
fi
if [ -x /var/scripts/history.sh ]
then
/var/scripts/history.sh
fi
mesg n
ROOT-PROFILE