mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
* Cleanup + Replaced tabs with spaces + Unified if .. then + Fixed typo in 'DOCTYPE' + Unified indentation * Cleanup: More indentation fixes
32 lines
447 B
Bash
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
|