Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
Данунафиг! Эти шеллы просто достали (так, крик души).Приведите строку elif [ "$LSUSER" == "$LSPASS" ]; thenк виду elif [ "$LSUSER" = "$LSPASS" ]; then99% - заработает.UPD: (просмотрев скрипт) Там таких мест дофига. Все исправьте. Нету в test операции ==, а есть =.UPD1: Для любителей пруфлинков: http://www.ibm.com/developerworks/ru/library/l-bash-test/index.html
Спасибо за старание. Но 1%...
Цитата: Kata от 18 Декабря 2011, 13:18:53Спасибо за старание. Но 1%...Ошибки показывайте.Телепатов на форуме нет.
Таааак... "Не верю" (с) Станиславский. Я запустил Ваш скрипт у себя без каких-либо изменений - прошел без ошибок. Вот лог: (Нажмите, чтобы показать/скрыть)vladimir@vladimir:~$ ./test.sh config1Settings file not found: config1You can specify an alternate settings filename:./test.sh config_filenameIf file doesn't exist it can be createdIf nothing is specified script will try to work with ./database_installer.conf############################################## RT Server configuration area: ## No change will be performed in your DB ## I will just ask you some questions about ## your hosts and DB. ##############################################Please enter MySQL Login Server hostname (default localhost): Please enter MySQL Login Server database name (default l2rt): Please enter MySQL Login Server user (default root): Please enter MySQL Login Server root's password (won't be displayed) :Please enter MySQL Game Server hostname (default localhost): Please enter MySQL Game Server database name (default l2rt): Please enter MySQL Game Server user (default root): Please enter MySQL Game Server root's password (won't be displayed): With these data i can generate a configuration file which can be readon future updates. WARNING: this file will contain clear text passwords!Shall i generate config file config1? (Y/n):Configuration saved as config1Permissions changed to 600 (rw- --- ---)Do you want to make a backup copy of your LSDB? (y/n): n############################################## WARNING: This section of the script CAN ## destroy your characters and accounts ## information. Read questions carefully ## before you reply. ##############################################LOGINSERVER DB install type:Choose (s) [skip] to skip loginserver DB installation and go to gameserver DB installation.Choose (f) [full] to install loginserver DB installation and go to gameserver DB installation.Choose (q) [quit] to close this installer.sDo you want to make a backup copy of your GSDB? (y/n): n!!! W A R N I N G !!! A full install (f) will destroy all existing character data.GAMESERVER DB install type:Choose (s) [skip] to skip gameserver DB installation and go to other DB installation.Choose (f) [full] to install gameserver DB installation and go to other DB installation.Choose (u) [upgrade] to upgrade gameserver DB installation (character, clan, castle and clanhall data is not used) and go to other DB installation.Choose (q) [quit] to close this installer.sInstall DB tables for PVP Servers: (y) yes or (n) no or (q) quit?yThe given module is executed on the future... Updatings in following versions...Script execution finished.Давайте-ка рассказывайте, на чем запускаете и приводите (как уже просили) полный лог консоли.
Страница сгенерирована за 0.086 секунд. Запросов: 25.