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
50
50
51
51
status " Removing configs from host in case of force stop of virtual machine before linking restored ones"
52
52
cd " ${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"
54
53
55
54
status " 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
+
56
59
rm -f /etc/init.d/unlink-configs
57
60
cp " ${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)
67
62
68
63
status " Upgrading existing environment"
69
64
if [[ -f " ${vagrant_dir} /.idea/deployment.xml" ]]; then
You can’t perform that action at this time.
0 commit comments