Подготовить HY2XS к production-сборке
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import type { InstallContext } from "../types/context";
|
||||
import { runVisible } from "../lib/process";
|
||||
|
||||
export async function deployUi(context: InstallContext): Promise<void> {
|
||||
await runVisible`cp -a ${context.options.packageDir}/ui/hy2xs-admin/. /opt/hy2xs-admin/`;
|
||||
await runVisible`chown -R root:root /opt/hy2xs-admin`;
|
||||
await runVisible`chmod -R go-w /opt/hy2xs-admin`;
|
||||
}
|
||||
Reference in New Issue
Block a user