Skip to content

Instantly share code, notes, and snippets.

@disafronov
Created August 11, 2019 14:24
Show Gist options
  • Select an option

  • Save disafronov/7bea7c75de2852d07c70a080756c72fe to your computer and use it in GitHub Desktop.

Select an option

Save disafronov/7bea7c75de2852d07c70a080756c72fe 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