3 sqlite3 /opt/dbspace/.alarm.db 'PRAGMA journal_mode = PERSIST;
4 create table if not exists alarm (id INTEGER PRIMARY KEY autoincrement,
19 repeat_weekly INTEGER,
20 snooze_enable INTEGER,
27 auto_power_on INTEGER );'
30 if [ ${USER} = "root" ]
40 #chown :5000 /opt/dbspace
41 chown :6001 /opt/dbspace/.alarm.db
42 chown :6001 /opt/dbspace/.alarm.db-journal
43 #chown root:root /opt/dbspace/.alarm.db
44 #chown root:root /opt/dbspace/.alarm.db-journal
47 # Change file permissions
55 #chmod 775 /opt/dbspace
56 chmod 660 /opt/dbspace/.alarm.db
57 chmod 660 /opt/dbspace/.alarm.db-journal
58 #chmod 600 /opt/dbspace/.alarm.db
59 #chmod 600 /opt/dbspace/.alarm.db-journal