File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,8 @@ sudo -u postgres psql --username=postgres --dbname="$PG_DB" --command="ALTER DAT
6161sudo -u postgres psql --username=postgres --dbname=" $PG_DB " --command=" ALTER SCHEMA public OWNER TO \" $PG_USER \" ;"
6262sudo -u postgres psql --username=postgres --dbname=" $PG_DB " --command=" GRANT SELECT ON pg_largeobject TO \" $PG_USER \" ;"
6363NEW_URL=" database = \" postgresql+psycopg2://$ESC_USER :$ESC_PASS @localhost:5432/$ESC_DB \" "
64- # sudo chmod 666 /usr/local/etc/cms.toml
6564sudo chmod 640 /usr/local/etc/cms.toml
66- sudo chown $CUR_USER : $CUR_USER /usr/local/etc/cms.toml
65+ sudo chown root:cmsuser /usr/local/etc/cms.toml
6766sudo sed -i " s|^database = \" .*\" |$NEW_URL |" " $CONFIG_PATH "
6867sudo sed -i " s|^secret_key = \" .*\" |secret_key = \" $SECRET_KEY \" |" " $CONFIG_PATH "
6968$CUR_DIR /cms_venv/bin/cmsInitDB
@@ -121,7 +120,7 @@ WantedBy=multi-user.target
121120EOF
122121
123122sudo chmod 640 " $CUR_DIR /resource-service.conf"
124- sudo chown $CUR_USER : $CUR_USER " $CUR_DIR /resource-service.conf"
123+ sudo chown root:cmsuser " $CUR_DIR /resource-service.conf"
125124
126125sudo systemctl daemon-reexec
127126sudo systemctl daemon-reload
You can’t perform that action at this time.
0 commit comments