SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Список вопросов ПечатьМетки: directadmin
RemiZOffAlex Создано: 2017-02-17 01:11:10.364388 Обновлено: 2017-02-17 01:11:10.364388 |
---|
Например надо закрыть в DirectAdmin ссылки http://IP:2222/CMD_SKINS. Добавить в файл /usr/local/directadmin/scripts/custom/all_pre.sh строки перед командой exit 0; cat <<EOF > /usr/local/directadmin/scripts/custom/all_pre.sh #!/bin/sh if [ "$command" = "/CMD_LICENSE" ]; then exit 1; fi if [ "$command" = "/CMD_CUSTOM_HTTPD" ]; then exit 1; fi if [ "$command" = "/CMD_SKINS" ]; then exit 1; fi if [ "$command" = "/CMD_IP_MANAGER" ]; then exit 1; fi exit 0; EOF |