File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,15 @@ incrementNestingLevel
5050
5151status " Removing configs from host in case of force stop of virtual machine before linking restored ones"
5252cd " ${vagrant_dir} /etc" && mv guest/.gitignore guest_gitignore.back && rm -rf guest && mkdir guest && mv guest_gitignore.back guest/.gitignore
53- bash " ${vagrant_dir} /scripts/guest/link_configs"
5453
5554status " Making sure configs are restored on system halt and during reboot"
55+ # Unlink here helps in case when Virtual Machine was suspended
56+ bash " ${vagrant_dir} /scripts/guest/unlink_configs"
57+ bash " ${vagrant_dir} /scripts/guest/link_configs"
58+
5659rm -f /etc/init.d/unlink-configs
5760cp " ${vagrant_dir} /scripts/guest/unlink_configs" /etc/init.d/unlink-configs
58- if [[ ! -f /etc/rc0.d/K04-unlink-configs ]]; then
59- ln -s /etc/init.d/unlink-configs /etc/rc0.d/K04-unlink-configs
60- ln -s /etc/init.d/unlink-configs /etc/rc1.d/S04-unlink-configs
61- ln -s /etc/init.d/unlink-configs /etc/rc2.d/S04-unlink-configs
62- ln -s /etc/init.d/unlink-configs /etc/rc3.d/S04-unlink-configs
63- ln -s /etc/init.d/unlink-configs /etc/rc4.d/S04-unlink-configs
64- ln -s /etc/init.d/unlink-configs /etc/rc5.d/S04-unlink-configs
65- ln -s /etc/init.d/unlink-configs /etc/rc6.d/K04-unlink-configs
66- fi
61+ update-rc.d unlink-configs defaults 04 2> >( log) > >( log)
6762
6863status " Upgrading existing environment"
6964if [[ -f " ${vagrant_dir} /.idea/deployment.xml" ]]; then
You can’t perform that action at this time.
0 commit comments