Skip to content

Instantly share code, notes, and snippets.

@Strong
Forked from disafronov/bitrix-menu-override.sh
Created May 1, 2023 20:27
Show Gist options
  • Save Strong/c284baefcaa8d75f29fbea15d94f71f7 to your computer and use it in GitHub Desktop.
Save Strong/c284baefcaa8d75f29fbea15d94f71f7 to your computer and use it in GitHub Desktop.
Disable bitrix menu autostart and set banner
# /etc/profile.d/00-bitrix-menu-override.sh
if [[ $- == *i* ]] && [[ ${UID} -eq 0 ]]; then
# Disable bitrix menu autostart
mv ~/menu.sh ~/.menu.sh 2> /dev/null
sed -i -e 's/^~\/menu.sh/\#~\/menu.sh/g' ~/.bash_profile
# Manual menu banner
echo "BitrixVM Customized: for bitrix menu run [~/.menu.sh]"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment