File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
packages/Debian/common/DEBIAN Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ copy_new_data () {
71
71
}
72
72
73
73
# main
74
- echo " postinst begin"
75
74
76
75
echo " Resolving data directory"
77
76
copy_new_data
@@ -86,7 +85,4 @@ enable_foglamp_service
86
85
echo " Starting FogLAMP service"
87
86
start_foglamp_service
88
87
89
- echo " postinst complete"
90
-
91
-
92
88
Original file line number Diff line number Diff line change @@ -84,20 +84,20 @@ install_pip3_packages() {
84
84
}
85
85
86
86
# main
87
- echo " preinst begin "
87
+
88
88
# check if foglamp is installed
89
89
IS_FOGLAMP_INSTALLED=$( is_foglamp_installed)
90
90
91
91
# if foglamp is installed...
92
92
if [ " $IS_FOGLAMP_INSTALLED " -eq " 1" ]
93
93
then
94
- echo " FogLAMP is already installed"
94
+ echo " FogLAMP is already installed: this is an upgrade/downgrade. "
95
95
96
96
# exit if foglamp is running
97
97
IS_FOGLAMP_RUNNING=$( is_foglamp_running)
98
98
if [ " $IS_FOGLAMP_RUNNING " -eq " 1" ]
99
99
then
100
- echo " ERROR. FogLAMP is currently running. Stop FogLAMP and try again."
100
+ echo " *** ERROR. FogLAMP is currently running. Stop FogLAMP and try again. *** "
101
101
exit 1
102
102
fi
103
103
@@ -108,14 +108,11 @@ then
108
108
EXISTS_SCHEMA_CHANGE_PATH=$( exists_schema_change_path)
109
109
if [ " $EXISTS_SCHEMA_CHANGE_PATH " -eq " 0" ]
110
110
then
111
- echo " ERROR. There is no schema change path from the installed version to the new version."
111
+ echo " *** ERROR. There is no schema change path from the installed version to the new version. *** "
112
112
exit 1
113
113
fi
114
114
115
- else
116
- echo " FogLAMP is not installed"
117
115
fi
118
116
119
117
install_pip3_packages
120
118
121
- echo " preinst complete"
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ remove_data_files () {
79
79
}
80
80
81
81
# main
82
- echo " prerm begin "
82
+
83
83
IS_FOGLAMP_RUNNING=$( is_foglamp_running)
84
84
if [ " $IS_FOGLAMP_RUNNING " -eq " 1" ]
85
85
then
@@ -101,4 +101,3 @@ remove_foglamp_service_file
101
101
echo " Reset systemctl"
102
102
reset_systemctl
103
103
104
- echo " prerm complete"
You can’t perform that action at this time.
0 commit comments