debian/combo.init: we need to set a shell for su commands (#7071)
This commit is contained in:
parent
53101b136c
commit
038d00a6de
|
@ -119,13 +119,13 @@ do_reload() {
|
|||
|
||||
do_migrate() {
|
||||
log_action_msg "Applying migrations (migrate_schemas).."
|
||||
su $USER -p -c "$MANAGE_SCRIPT migrate_schemas"
|
||||
su $USER -s /bin/sh -p -c "$MANAGE_SCRIPT migrate_schemas"
|
||||
log_action_msg "done"
|
||||
}
|
||||
|
||||
do_collectstatic() {
|
||||
log_action_msg "Collect static files (collectstatic).."
|
||||
su $USER -p -c "$MANAGE_SCRIPT collectstatic --noinput"
|
||||
su $USER -s /bin/sh -p -c "$MANAGE_SCRIPT collectstatic --noinput"
|
||||
log_action_msg "done"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue