Update upgrade scripts 25/144225/1
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 16 Aug 2017 02:54:14 +0000 (11:54 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 16 Aug 2017 02:54:14 +0000 (11:54 +0900)
Change-Id: Icf80de1197abb645dd87991f4f7adc2ff94a8124
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/500.media-server.upgrade.sh

index 9a28dfb..20e1103 100644 (file)
@@ -12,6 +12,8 @@ SHARE_DIR_30=/opt/usr/home/owner/share
 DB_FILE_24=$DB_DIR_24/.media.db
 DB_FILE_30=$DB_DIR_30/.media.db
 
+if [ -e $DB_FILE_24 ]
+then
 # Move
 mv $DB_FILE_24 $DB_FILE_30
 rm -f $DB_FILE_24-journal
@@ -37,3 +39,4 @@ chsmack -a 'User::App::Shared' -t $SHARE_DIR_30/media
 chmod 0775 $SHARE_DIR_30/media
 chmod -R 0777 $SHARE_DIR_30/media/.thumb
 find $SHARE_DIR_30/media/.thumb -type d -exec /usr/bin/chsmack -a 'User::App::Shared' -t {} +
+fi