Skip to content

Commit 7ef955e

Browse files
author
Ivan Zoratti
committed
removed verbose info
1 parent 1a6f5df commit 7ef955e

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ copy_new_data () {
7171
}
7272

7373
# main
74-
echo "postinst begin"
7574

7675
echo "Resolving data directory"
7776
copy_new_data
@@ -86,7 +85,4 @@ enable_foglamp_service
8685
echo "Starting FogLAMP service"
8786
start_foglamp_service
8887

89-
echo "postinst complete"
90-
91-
9288

packages/Debian/common/DEBIAN/preinst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ install_pip3_packages() {
8484
}
8585

8686
# main
87-
echo "preinst begin"
87+
8888
# check if foglamp is installed
8989
IS_FOGLAMP_INSTALLED=$(is_foglamp_installed)
9090

9191
# if foglamp is installed...
9292
if [ "$IS_FOGLAMP_INSTALLED" -eq "1" ]
9393
then
94-
echo "FogLAMP is already installed"
94+
echo "FogLAMP is already installed: this is an upgrade/downgrade."
9595

9696
# exit if foglamp is running
9797
IS_FOGLAMP_RUNNING=$(is_foglamp_running)
9898
if [ "$IS_FOGLAMP_RUNNING" -eq "1" ]
9999
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. ***"
101101
exit 1
102102
fi
103103

@@ -108,14 +108,11 @@ then
108108
EXISTS_SCHEMA_CHANGE_PATH=$(exists_schema_change_path)
109109
if [ "$EXISTS_SCHEMA_CHANGE_PATH" -eq "0" ]
110110
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. ***"
112112
exit 1
113113
fi
114114

115-
else
116-
echo "FogLAMP is not installed"
117115
fi
118116

119117
install_pip3_packages
120118

121-
echo "preinst complete"

packages/Debian/common/DEBIAN/prerm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ remove_data_files () {
7979
}
8080

8181
# main
82-
echo "prerm begin"
82+
8383
IS_FOGLAMP_RUNNING=$(is_foglamp_running)
8484
if [ "$IS_FOGLAMP_RUNNING" -eq "1" ]
8585
then
@@ -101,4 +101,3 @@ remove_foglamp_service_file
101101
echo "Reset systemctl"
102102
reset_systemctl
103103

104-
echo "prerm complete"

0 commit comments

Comments
 (0)