diff --git a/setup.sh b/setup.sh index 39299eb..8e01009 100644 --- a/setup.sh +++ b/setup.sh @@ -409,6 +409,7 @@ setup_role() { run "делаю $init_script исполняемым" sudo chmod +x $init_script echo "запускаю $init_script отдельной командой" echo "=============================" + cd $target_dir sudo -u "$USERNAME" -H bash "$init_script" echo "=============================" run "Waiting for $service_name stack to be Up" bash -c "