install: restart process after installing addon

This commit is contained in:
undefined committed 2022-11-11 13:38:04 +08:00
1 parent 489a374445
commit b7738c42fc
1 file changed
+4 -1
+4 -1
View File
@@ -391,7 +391,10 @@ connect-timeout = 10`);
{
init: 'install.postinstall',
operations: [
...installAsJudge ? [] : ['hydrooj install https://hydro.ac/language-server-0.0.1.tgz'],
...installAsJudge ? [] : [
'hydrooj install https://hydro.ac/language-server-0.0.1.tgz',
'pm2 restart hydrooj',
],
['pm2 install pm2-logrotate', { retry: true }],
'pm2 set pm2-logrotate:max_size 64M',
],