Skip to content

Commit ffce558

Browse files
committed
restart fix
1 parent c2c8642 commit ffce558

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

ghost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function setup( $args ) {
166166
}
167167

168168
// Restart the ghost service to reflect DB changes
169-
$cmd = 'runuser -s /bin/bash -l ' . $user . ' -c "sleep 8 && export NVM_DIR=/opt/nvm && source /opt/nvm/nvm.sh ; pm2 restart ghost-' . $domain . ' > /dev/null 2>&1 &"';
169+
$cmd = 'runuser -s /bin/bash -l ' . $user . ' -c "sleep 8 && touch ' . $ghost_folder . '/.restart/restart"';
170170
$hcpp->log( $cmd );
171171
shell_exec( $cmd );
172172
}
File renamed without changes.

0 commit comments

Comments
 (0)