mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update some argument
This commit is contained in:
@@ -27,7 +27,7 @@ EOL;
|
|||||||
$s .= "\nUser=".exec("whoami");
|
$s .= "\nUser=".exec("whoami");
|
||||||
$s .= "\nGroup=".exec("groups | awk '{print $1}'");
|
$s .= "\nGroup=".exec("groups | awk '{print $1}'");
|
||||||
$s .= "\nWorkingDirectory=" . getcwd();
|
$s .= "\nWorkingDirectory=" . getcwd();
|
||||||
$s .= "\nExecStart=php " .getcwd()."/bin/start --disable-console-input";
|
$s .= "\nExecStart=$(which php) " .getcwd()."/bin/start --disable-console-input";
|
||||||
$s .= "\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n";
|
$s .= "\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n";
|
||||||
file_put_contents(getcwd()."/resources/zhamao.service", $s);
|
file_put_contents(getcwd()."/resources/zhamao.service", $s);
|
||||||
echo "File successfully generated. Path: ".getcwd()."/resources/zhamao.service\n";
|
echo "File successfully generated. Path: ".getcwd()."/resources/zhamao.service\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user