mirror of
https://github.com/deadcxap/init_scripts.git
synced 2026-07-02 05:43:40 +03:00
снова инит не стартует
This commit is contained in:
@@ -404,7 +404,13 @@ setup_role() {
|
||||
run "Setting ownership for $target_dir" chown -R "$USERNAME:$USERNAME" "$target_dir"
|
||||
init_script="$target_dir/init.sh"
|
||||
if [[ -f "$init_script" ]]; then
|
||||
run "Running init.sh for $service_name" sudo -u "$USERNAME" -H bash "$init_script"
|
||||
# run "Running init.sh for $service_name" sudo -u "$USERNAME" -H bash "$init_script"
|
||||
|
||||
run "делаю $init_script исполняемым" sudo chmod +x $init_script
|
||||
echo "запускаю $init_script отдельной командой"
|
||||
echo "============================="
|
||||
sudo -u "$USERNAME" -H bash "$init_script"
|
||||
echo "============================="
|
||||
run "Waiting for $service_name stack to be Up" bash -c "
|
||||
set -e
|
||||
dir=\"$target_dir\"
|
||||
|
||||
Reference in New Issue
Block a user