mirror of https://github.com/OpenVidu/openvidu.git
Reintroduce restart script in installation process and adjust indentation for consistency
parent
9fd195fde8
commit
ef189f6e82
|
@ -675,12 +675,6 @@ locals {
|
||||||
CHECK_APP_EOF
|
CHECK_APP_EOF
|
||||||
chmod +x /usr/local/bin/check_app_ready.sh
|
chmod +x /usr/local/bin/check_app_ready.sh
|
||||||
|
|
||||||
# restart.sh
|
|
||||||
cat > /usr/local/bin/restart.sh << 'RESTART_EOF'
|
|
||||||
${local.restart_script}
|
|
||||||
RESTART_EOF
|
|
||||||
chmod +x /usr/local/bin/restart.sh
|
|
||||||
|
|
||||||
# config_s3.sh
|
# config_s3.sh
|
||||||
cat > /usr/local/bin/config_s3.sh << 'CONFIG_S3_EOF'
|
cat > /usr/local/bin/config_s3.sh << 'CONFIG_S3_EOF'
|
||||||
${local.config_s3_script}
|
${local.config_s3_script}
|
||||||
|
@ -715,6 +709,11 @@ locals {
|
||||||
# Update shared secret
|
# Update shared secret
|
||||||
/usr/local/bin/after_install.sh || { echo "[OpenVidu] error updating shared secret"; exit 1; }
|
/usr/local/bin/after_install.sh || { echo "[OpenVidu] error updating shared secret"; exit 1; }
|
||||||
else
|
else
|
||||||
|
# restart.sh
|
||||||
|
cat > /usr/local/bin/restart.sh << 'RESTART_EOF'
|
||||||
|
${local.restart_script}
|
||||||
|
RESTART_EOF
|
||||||
|
chmod +x /usr/local/bin/restart.sh
|
||||||
# Launch on reboot
|
# Launch on reboot
|
||||||
/usr/local/bin/restart.sh || { echo "[OpenVidu] error restarting OpenVidu"; exit 1; }
|
/usr/local/bin/restart.sh || { echo "[OpenVidu] error restarting OpenVidu"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue