Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente <martin.abente.lahaye@gmail.com>2011-01-28 15:33:24 (GMT)
committer Martin Abente <martin.abente.lahaye@gmail.com>2011-01-28 15:33:24 (GMT)
commit028516acb54eff7fe94b4094befc1f1a77c775f7 (patch)
tree65de333abc690509a1c697e8091e3fb6eaa1de86
parent07d14b1c0e54625247650aa7e4bdbb99477ba37b (diff)
config file rename and spec upate
-rw-r--r--config.ini.example (renamed from config.ini)0
-rw-r--r--sugar-fbserver.spec7
2 files changed, 6 insertions, 1 deletions
diff --git a/config.ini b/config.ini.example
index 517ba70..517ba70 100644
--- a/config.ini
+++ b/config.ini.example
diff --git a/sugar-fbserver.spec b/sugar-fbserver.spec
index 5569c79..cfca64d 100644
--- a/sugar-fbserver.spec
+++ b/sugar-fbserver.spec
@@ -1,6 +1,6 @@
Name: sugar-fbserver
Version: 0.1
-Release: 6
+Release: 7
Vendor: Activity Central
Summary: Sugar debugging feedback server
Group: Applications/Internet
@@ -37,6 +37,11 @@ rm -rf $RPM_BUILD_ROOT
%post
chkconfig --level 345 fbserverd on
+# copy config file if it does not exist
+if [ ! -f /opt/%{name}/config.ini ]; then
+ cp /opt/%{name}/config.ini.example /opt/%{name}/config.ini
+fi
+
%preun
chkconfig --level 345 fbserverd off