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.

Revisions

  1. @dmitriysafronov dmitriysafronov created this gist Aug 11, 2019.
    9 changes: 9 additions & 0 deletions bitrix-menu-override.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # /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