rename update script file 11/102011/1
authorchanywa <cbible.kim@samsung.com>
Sat, 3 Dec 2016 08:05:08 +0000 (17:05 +0900)
committerchanywa <cbible.kim@samsung.com>
Sat, 3 Dec 2016 08:09:19 +0000 (17:09 +0900)
Change-Id: I7bc7f3267f1d5e25ff0fd128ba44fef07389e844

packaging/geofence-server.spec
scripts/500.geofence-server.sh [new file with mode: 0644]
scripts/geofence-server_upgrade.sh [deleted file]

index c385ca82b61fca1b7159e5e617d2f46da6c2dbf1..302063ab0c35ba7fe57f96714a5f6f322b5cd7a4 100644 (file)
@@ -1,6 +1,6 @@
 Name:       geofence-server
 Summary:    Geofence Server for Tizen
-Version:    0.4.4
+Version:    0.4.5
 Release:    1
 Group:      Location/Service
 License:    Apache-2.0
@@ -59,7 +59,7 @@ rm -rf %{buildroot}
 %make_install
 
 mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/geofence-server_upgrade.sh %{buildroot}%{upgrade_script_path}
+cp -f scripts/500.%{name}.sh %{buildroot}%{upgrade_script_path}
 
 #service for systemd is not installed to support only DBus auto activation
 #mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants
@@ -79,7 +79,7 @@ rm -rf %{buildroot}
 /usr/bin/geofence-server
 /usr/share/dbus-1/services/org.tizen.lbs.Providers.GeofenceServer.service
 %config %{_sysconfdir}/dbus-1/session.d/geofence-server.conf
-%{upgrade_script_path}/geofence-server_upgrade.sh
+%{upgrade_script_path}/500.%{name}.sh
 
 #service for systemd is not installed to support only DBus auto activation
 #%{_unitdir_user}/geofence-server.service
diff --git a/scripts/500.geofence-server.sh b/scripts/500.geofence-server.sh
new file mode 100644 (file)
index 0000000..fb359b0
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+#------------------------------------------------#
+# geofence-server patch for upgrade (2.4 -> 3.0) #
+#------------------------------------------------#
+
+# Macro
+DB_DIR_24=/opt/usr/dbspace/
+DB_DIR_30=/opt/usr/home/owner/.applications/dbspace/
+DB_FILE=.geofence-server.db
+
+# move DB
+mv $DB_DIR_24$DB_FILE $DB_DIR_30
+mv $DB_DIR_24$DB_FILE-journal $DB_DIR_30
+
+#set Permission
+chown owner:users $DB_DIR_30$DB_FILE
+chown owner:users $DB_DIR_30$DB_FILE-journal
+
+exit 0
diff --git a/scripts/geofence-server_upgrade.sh b/scripts/geofence-server_upgrade.sh
deleted file mode 100644 (file)
index fb359b0..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#------------------------------------------------#
-# geofence-server patch for upgrade (2.4 -> 3.0) #
-#------------------------------------------------#
-
-# Macro
-DB_DIR_24=/opt/usr/dbspace/
-DB_DIR_30=/opt/usr/home/owner/.applications/dbspace/
-DB_FILE=.geofence-server.db
-
-# move DB
-mv $DB_DIR_24$DB_FILE $DB_DIR_30
-mv $DB_DIR_24$DB_FILE-journal $DB_DIR_30
-
-#set Permission
-chown owner:users $DB_DIR_30$DB_FILE
-chown owner:users $DB_DIR_30$DB_FILE-journal
-
-exit 0