# See the License for the specific language governing permissions and
# limitations under the License.
#
-for name in wrt ace vcore
+
+for name in wrt wrt_autosave
do
rm -f /opt/dbspace/.$name.db
rm -f /opt/dbspace/.$name.db-journal
SQL=".read /usr/share/wrt-engine/"$name"_db.sql"
sqlite3 /opt/dbspace/.$name.db "$SQL"
touch /opt/dbspace/.$name.db-journal
- chown root:6026 /opt/dbspace/.$name.db
- chown root:6026 /opt/dbspace/.$name.db-journal
+ chown 0:6026 /opt/dbspace/.$name.db
+ chown 0:6026 /opt/dbspace/.$name.db-journal
chmod 660 /opt/dbspace/.$name.db
chmod 660 /opt/dbspace/.$name.db-journal
done