Skip to content

Commit 4614df5

Browse files
committed
E_RESTART should be a variable
1 parent 275a822 commit 4614df5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+89
-89
lines changed

bin/v-add-cron-job

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ increase_user_value $user '$U_CRON_JOBS'
7575
# Restart crond
7676
$BIN/v-restart-cron
7777
if [ $? -ne 0 ]; then
78-
exit E_RESTART
78+
exit $E_RESTART
7979
fi
8080

8181
# Logging

bin/v-add-cron-report

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sync_cron_jobs
4747
# Restart crond
4848
$BIN/v-restart-cron
4949
if [ $? -ne 0 ]; then
50-
exit E_RESTART
50+
exit $E_RESTART
5151
fi
5252

5353
# Logging

bin/v-add-dns-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ increase_user_value "$user" '$U_DNS_RECORDS' "$records"
163163
if [ "$restart" != 'no' ]; then
164164
$BIN/v-restart-dns
165165
if [ $? -ne 0 ]; then
166-
exit E_RESTART
166+
exit $E_RESTART
167167
fi
168168
fi
169169

bin/v-add-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ increase_user_value "$user" '$U_DNS_RECORDS'
108108
if [ "$restart" != 'no' ]; then
109109
$BIN/v-restart-dns
110110
if [ $? -ne 0 ]; then
111-
exit E_RESTART
111+
exit $E_RESTART
112112
fi
113113
fi
114114

bin/v-add-sys-ip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ fi
153153
# Restart web server
154154
$BIN/v-restart-web
155155
if [ $? -ne 0 ]; then
156-
exit E_RESTART
156+
exit $E_RESTART
157157
fi
158158
$BIN/v-restart-proxy
159159
if [ $? -ne 0 ]; then
160-
exit E_RESTART
160+
exit $E_RESTART
161161
fi
162162

163163
# Logging

bin/v-add-web-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ chmod 660 $USER_DATA/web.conf
177177
if [ "$restart" != 'no' ]; then
178178
$BIN/v-restart-web
179179
if [ $? -ne 0 ]; then
180-
exit E_RESTART
180+
exit $E_RESTART
181181
fi
182182
fi
183183

bin/v-add-web-domain-alias

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ increase_user_value "$user" '$U_WEB_ALIASES'
104104
if [ "$restart" != 'no' ]; then
105105
$BIN/v-restart-web
106106
if [ $? -ne 0 ]; then
107-
exit E_RESTART
107+
exit $E_RESTART
108108
fi
109109

110110
$BIN/v-restart-proxy
111111
if [ $? -ne 0 ]; then
112-
exit E_RESTART
112+
exit $E_RESTART
113113
fi
114114
fi
115115

bin/v-add-web-domain-proxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ update_object_value 'web' 'DOMAIN' "$domain" '$PROXY_EXT' "$extentions"
104104
if [ "$restart" != 'no' ]; then
105105
$BIN/v-restart-proxy
106106
if [ $? -ne 0 ]; then
107-
exit E_RESTART
107+
exit $E_RESTART
108108
fi
109109
fi
110110

bin/v-add-web-domain-ssl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ update_object_value 'web' 'DOMAIN' "$domain" '$SSL' "yes"
127127
if [ "$restart" != 'no' ]; then
128128
$BIN/v-restart-web
129129
if [ $? -ne 0 ]; then
130-
exit E_RESTART
130+
exit $E_RESTART
131131
fi
132132

133133
$BIN/v-restart-proxy
134134
if [ $? -ne 0 ]; then
135-
exit E_RESTART
135+
exit $E_RESTART
136136
fi
137137
fi
138138

bin/v-change-cron-job

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ sync_cron_jobs
6666
# Restart crond
6767
$BIN/v-restart-cron
6868
if [ $? -ne 0 ]; then
69-
exit E_RESTART
69+
exit $E_RESTART
7070
fi
7171

7272
# Logging

0 commit comments

Comments
 (0)