2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 01:57:19 +08:00

fix: build

This commit is contained in:
2026-01-24 18:51:06 +08:00
parent 9519be6303
commit e8c1ad2b43
3 changed files with 8 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ func initWeb() (*app.Web, error) {
perconaApp := percona.NewApp(locale, settingRepo)
phpmyadminApp := phpmyadmin.NewApp(locale)
podmanApp := podman.NewApp()
postgresqlApp := postgresql.NewApp(locale)
postgresqlApp := postgresql.NewApp(locale, settingRepo)
pureftpdApp := pureftpd.NewApp(locale)
redisApp := redis.NewApp(locale)
rsyncApp := rsync.NewApp(locale)

View File

@@ -88,7 +88,7 @@ func initCli() (*app.Cli, error) {
perconaApp := percona.NewApp(locale, settingRepo)
phpmyadminApp := phpmyadmin.NewApp(locale)
podmanApp := podman.NewApp()
postgresqlApp := postgresql.NewApp(locale)
postgresqlApp := postgresql.NewApp(locale, settingRepo)
pureftpdApp := pureftpd.NewApp(locale)
redisApp := redis.NewApp(locale)
rsyncApp := rsync.NewApp(locale)

View File

@@ -14,5 +14,10 @@ export default {
// 获取日志
log: (): any => http.Get('/apps/postgresql/log'),
// 清空错误日志
clearLog: (): any => http.Post('/apps/postgresql/clear_log')
clearLog: (): any => http.Post('/apps/postgresql/clear_log'),
// 获取 postgres 密码
postgresPassword: (): any => http.Get('/apps/postgresql/postgres_password'),
// 设置 postgres 密码
setPostgresPassword: (password: string): any =>
http.Post('/apps/postgresql/postgres_password', { password })
}