Wozu ein Virustest einer .sh Datei ?
Hier der Inhalt wenn du dennoch Zweifel hast :
PHP Code:
#!/bin/sh
echo -e "\033[36mCWybierz sciezke do plikow.
1. Sciezka: /usr/home/rw3
2. Sciezka: /usr/home/game
3. Sciezka: /home/rw3
4. Sciezka: /home/game\033[0m"
read chs
case $chs in
1*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /usr/home/rw3/
echo -e "\033[34mOdchudzanie katalogow game i game99...\033[0m"
sleep 2
cd /usr/home/rw3/game/
rm syslog
rm syserr
cd /usr/home/rw3/game99/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
cd /usr/home/rw3/
mkdir channel2
cp -r game /usr/home/rw3/channel2
cp -r game99 /usr/home/rw3/channel2
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
sleep 2
mkdir channel3
cp -r game /usr/home/rw3/channel3
cp -r game99 /usr/home/rw3/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /usr/home/rw3/channel4
cp -r game99 /usr/home/rw3/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /usr/home/rw3/
rm -rf logs/*/sys*
cp -r logs logi_CH2
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /usr/home/rw3/channel2/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH2 logs
ln -s /usr/home/rw3/logi_CH2/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel2/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH2 logs
ln -s /usr/home/rw3/logi_CH2/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /usr/home/rw3/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH3 logs
ln -s /usr/home/rw3/logi_CH3/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel3/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH3 logs
ln -s /usr/home/rw3/logi_CH3/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/rw3/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH4 logs
ln -s /usr/home/rw3/logi_CH4/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel4/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH4 logs
ln -s /usr/home/rw3/logi_CH4/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /usr/home/rw3/channel2/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH2
CHANNEL: 2
PORT: 16000
P2P_PORT: 17000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel2/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH2
CHANNEL: 2
PORT: 16001
P2P_PORT: 17001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /usr/home/rw3/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel3/game99/
rm CONFIG
echo 'HOSTNAME: channe99_CH3
CHANNEL: 3
PORT: 18001
P2P_PORT: 19001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/rw3/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel4/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH4
CHANNEL: 4
PORT: 20001
P2P_PORT: 21001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear
;;
2*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /usr/home/game/
echo -e "\033[34mOdchudzanie katalogow channel1 and channel2...\033[0m"
sleep 2
cd /usr/home/game/channel1/
rm syslog
rm syserr
cd /usr/home/game/channel2/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
mkdir channel3
cp -r game /usr/home/game/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /usr/home/game/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /usr/home/game/
rm -rf logs/*/sys*
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /usr/home/game/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/game/share/locale locale
ln -s /usr/home/game/share/data data
ln -s /usr/home/game/logi_CH3 logs
ln -s /usr/home/game/logi_CH3/game/PTS PTS
ln -s /usr/home/game/share/game game
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/game/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/game/share/locale locale
ln -s /usr/home/game/share/data data
ln -s /usr/home/game/logi_CH4 logs
ln -s /usr/home/game/logi_CH4/game/PTS PTS
ln -s /usr/home/game/share/game game
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /usr/home/game/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/game/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear
;;
3*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /home/rw3/
echo -e "\033[34mOdchudzanie katalogow game i game99...\033[0m"
sleep 2
cd /home/rw3/game/
rm syslog
rm syserr
cd /home/rw3/game99/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
cd /home/rw3/
mkdir channel2
cp -r game /home/rw3/channel2
cp -r game99 /home/rw3/channel2
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
sleep 2
mkdir channel3
cp -r game /home/rw3/channel3
cp -r game99 /home/rw3/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /home/rw3/channel4
cp -r game99 /home/rw3/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /home/rw3/
rm -rf logs/*/sys*
cp -r logs logi_CH2
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /home/rw3/channel2/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH2 logs
ln -s /home/rw3/logi_CH2/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel2/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH2 logs
ln -s /home/rw3/logi_CH2/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /home/rw3/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH3 logs
ln -s /home/rw3/logi_CH3/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel3/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH3 logs
ln -s /home/rw3/logi_CH3/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/rw3/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH4 logs
ln -s /home/rw3/logi_CH4/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel4/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH4 logs
ln -s /home/rw3/logi_CH4/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /home/rw3/channel2/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH2
CHANNEL: 2
PORT: 16000
P2P_PORT: 17000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel2/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH2
CHANNEL: 2
PORT: 16001
P2P_PORT: 17001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /home/rw3/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel3/game99/
rm CONFIG
echo 'HOSTNAME: channe99_CH3
CHANNEL: 3
PORT: 18001
P2P_PORT: 19001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/rw3/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel4/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH4
CHANNEL: 4
PORT: 20001
P2P_PORT: 21001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear
;;
4*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /home/game/
echo -e "\033[34mOdchudzanie katalogow channel1 i channel2...\033[0m"
sleep 2
cd /home/game/channel1/
rm syslog
rm syserr
cd /home/game/channel2/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
mkdir channel3
cp -r game /home/game/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /home/game/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /home/game/
rm -rf logs/*/sys*
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /home/game/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/game/share/locale locale
ln -s /home/game/share/data data
ln -s /home/game/logi_CH3 logs
ln -s /home/game/logi_CH3/game/PTS PTS
ln -s /home/game/share/game game
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/game/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/game/share/locale locale
ln -s /home/game/share/data data
ln -s /home/game/logi_CH4 logs
ln -s /home/game/logi_CH4/game/PTS PTS
ln -s /home/game/share/game game
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /home/game/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/game/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear
;;
esac
sleep 5
echo -e "\033[36mCzy chcesz, aby instalator zedytowal pliki start i stop pod 4 CH?
1. Tak
2. Nie\033[0m"
read chs
case $chs in
2*)
exit
;;
1*)
echo -e "\033[36mPonownie wybierz sciezke, z wyboru pierwotnego (instalacji channeli).
1. /usr/home/rw3
2. /usr/home/game
3. /home/rw3
4. /home/game\033[0m"
;;
esac
case $chs in
1*)
echo -e "\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
cd /usr/home/rw3/
rm start.sh
rm close.sh
echo -e "\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -e "\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
echo '#!/bin/sh
echo -e "\033[31m
Ile Ch chcesz odpalic? \n
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game99/
./game99 &
sleep 2
;;
2*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game99/
./game99 &
sleep 2
;;
3*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/rw3/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/rw3/channel3/game99/
./game99 &
sleep 2
;;
4*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/rw3/channel2/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/rw3/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/rw3/channel3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /usr/home/rw3/channel4/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /usr/home/rw3/channel4/game99/
./game99 &
sleep 2
;;
esac' >> start.sh
echo '#!/bin/sh
killall game
killall db' >> close.sh
echo -e "\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod -R 777 /usr/home/rw3/
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5
;;
2*)
echo -e "\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
cd /usr/home/game/
rm start.sh
rm close.sh
echo -e "\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -e "\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
echo '#!/bin/sh
echo -e "\033[31m
Ile Ch chcesz odpalic? \n
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/game/channel1/
./game &
sleep 2
clear
;;
2*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/game/channel2/game
./game &
sleep 2
clear
;;
3*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/game/channel2/game
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/game/channel3/game
./game &
sleep 2
clear
;;
4*)
echo -e "\033[31m Startuje DB\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /usr/home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /usr/home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /usr/home/game/channel2/game
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /usr/home/game/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /usr/home/game/channel4/game/
./game &
sleep 2
clear
;;
esac' >> start.sh
echo '#!/bin/sh
killall game
killall db' >> close.sh
echo -e "\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod -R 777 /usr/home/game/
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5
;;
3*)
echo -e "\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
cd /home/rw3/
rm start.sh
rm close.sh
echo -e "\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -e "\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
echo '#!/bin/sh
echo -e "\033[31m
Ile Ch chcesz odpalic? \n
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game99/
./game99 &
sleep 2
;;
2*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game99/
./game99 &
sleep 2
;;
3*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/rw3/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/rw3/channel3/game99/
./game99 &
sleep 2
;;
4*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/rw3/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/rw3/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/rw3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/rw3/channel2/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/rw3/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/rw3/channel3/game99/
./game99 &
sleep 2
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /home/rw3/channel4/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /home/rw3/channel4/game99/
./game99 &
sleep 2
;;
esac' >> start.sh
echo '#!/bin/sh
killall game
killall db' >> close.sh
echo -e "\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod -R 777 /home/rw3/
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5
;;
4*)
echo -e "\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
cd /home/game/
rm start.sh
rm close.sh
echo -e "\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -e "\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
echo '#!/bin/sh
echo -e "\033[31m
Ile Ch chcesz odpalic? \n
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/game/channel1/
./game &
sleep 2
clear
;;
2*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/game/channel2/game
./game &
sleep 2
clear
;;
3*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/game/channel2/game
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/game/channel3/game
./game &
sleep 2
clear
;;
4*)
echo -e "\033[31m Startuje DB\033[0m"
cd /home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Startuje auth\033[0m"
cd /home/game/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n Startuje 1 Ch\033[0m"
cd /home/game/channel1/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 2 Ch\033[0m"
cd /home/game/channel2/game
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 3 Ch\033[0m"
cd /home/game/channel3/game/
./game &
sleep 2
clear
echo -e "\033[31m \n Startuje 4 Ch\033[0m"
cd /home/game/channel4/game/
./game &
sleep 2
clear
;;
esac' >> start.sh
echo '#!/bin/sh
killall game
killall db' >> close.sh
echo -e "\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod -R 777 /home/game/
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5
;;
esac
clear
sleep 2
echo -e "\033[33mInstalacja 4 channeli zakonczona sukcesem! \n
Skrypt zostal napisany przez sherer - zakaz udostepniania jako wlasny! \n
Chcesz podziekowac? \n
Odwdziecz sie plusem na mpcforum, lub subem na yt!\033[0m"
sleep 10
clear
exit