Skip to content

Commit 97eb53b

Browse files
committed
fix: comand typo in nginx reload
1 parent ed242fc commit 97eb53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ stream {
134134
let test = await exec(`sudo nginx -t`);
135135
if (test.stderr.includes('test is successful')) {
136136
try {
137-
await exec(`sudo systemctl.reload nginx`);
137+
await exec(`sudo systemctl reload nginx`);
138138
console.log('Nginx is running!');
139139
} catch (reloadErr) {
140140
console.warn('Nginx reload failed, attempting to start service:', reloadErr);

0 commit comments

Comments
 (0)