sed -i \
-e "s/DB_TO_BE_DEFINED/POSTGRES/" \
%{_sysconfdir}/%{name}/%{name}.conf
- echo %{name}.conf updated?!
fi
#=============================================================================
#Hard coded variables
APPNAME=mailleur
#===============================================================
+#----------------------------------------------------------------------
+#reporting a big trouble
+sh_failure()
+
+{
+case "$OS" in
+ osukiss )
+ echo Failure: $1
+ ;;
+ sysvinit )
+ echo Failure: $1
+ ;;
+ systemd )
+ echo -n $1 ; failure;
+ ;;
+ * )
+ echo "sh_failure: Unexpected OS=$OS, exiting!"
+ exit 1
+ ;;
+ esac
+}
+#----------------------------------------------------------------------
#procedure to check if the config is properly done
#you MUST AT LEAST, specify the Data Base type to be used by clement.
#----------------------------------------------------------------------