3 #------------------------------------------#
4 # rua upgrade (2.4 -> 3.0) #
5 #------------------------------------------#
8 PATH=/bin:/usr/bin:/sbin:/usr/sbin
11 DB_RUA=$DB_DIR/.rua.db
12 DB_RUA_STAT=$DB_DIR/.rua_stat.db
14 USR_DB_DIR=/opt/usr/home/owner/.applications/dbspace
15 UPGRADE_DB_RUA_STAT=$USR_DB_DIR/.rua_stat.db
17 # Delete DB & DB journal
19 rm -rf $DB_RUA-journal
21 # Copy stat DB & DB journal
22 cp -rf $DB_RUA_STAT $USR_DB_DIR
23 cp -rf $DB_RUA_STAT-journal $USR_DB_DIR
26 rm -rf $DB_RUA_STAT-journal
28 chmod 644 $UPGRADE_DB_RUA_STAT
29 chmod 644 $UPGRADE_DB_RUA_STAT-journal
31 chsmack -a User::Home $UPGRADE_DB_RUA_STAT
32 chsmack -a User::Home $UPGRADE_DB_RUA_STAT-journal
34 chown app_fw:app_fw $UPGRADE_DB_RUA_STAT
35 chown app_fw:app_fw $UPGRADE_DB_RUA_STAT-journal