docklet/tools/update-UserTable.sh

14 lines
320 B
Bash
Raw Normal View History

2016-08-21 17:18:56 +08:00
#!/bin/bash
echo "Backup UserTable..."
cp /opt/docklet/global/sys/UserTable.db /opt/docklet/global/sys/UserTable.db.backup
2016-09-26 09:28:05 +08:00
sed -i "s/^ beans/# beans/g" ../src/model.py
sed -i "s/^ self.beans/# self.beans/g" ../src/model.py
2016-08-21 17:18:56 +08:00
echo "Alter UserTable..."
python3 alterUserTable.py
git checkout -- ../