瀏覽代碼

add install steps for webpanel version

tags/1.5
Nico Rey 4 年之前
父節點
當前提交
9a767a6e54
共有 2 個文件被更改,包括 10 次插入7 次删除
  1. +9
    -6
      install.sh
  2. +1
    -1
      migrate_data.sh

+ 9
- 6
install.sh 查看文件

@@ -62,6 +62,14 @@ sudo apt install -yq predict \
sudo pip3 install numpy ephem tweepy Pillow
log_done "Packages installed"

### Create the database schema
if [ -e "$HOME/raspberry-noaa/panel.db" ]; then
log_done "Database already created"
else
sqlite3 "panel.db" < "templates/webpanel_schema.sql"
log_done "Database schema created"
fi

### Blacklist DVB modules
if [ -e /etc/modprobe.d/rtlsdr.conf ]; then
log_done "DVB modules were already blacklisted"
@@ -176,12 +184,7 @@ sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/default
sudo chmod 775 /var/www/wx
)
sudo systemctl restart nginx
if [ ! -e /var/www/wx/index.html ]; then
sudo cp templates/index.html /var/www/wx/index.html
fi
if [ ! -e /var/www/wx/logo-small.png ]; then
sudo cp templates/logo-small.png /var/www/wx/logo-small.png
fi
cp -r "templates/webpanel/*" "/var/www/wx/"
log_done "Nginx configured"

### Setup ramFS


+ 1
- 1
migrate_data.sh 查看文件

@@ -23,7 +23,7 @@ DB_PATH="${NOAA_HOME}/panel.db"
# operations are done over the RAMFS
# partition
cd "${RAMFS_AUDIO}" || exit 1
sqlite3 < "${NOAA_HOME}/templates/webpanel_schema.sql"
sqlite3 "$DB_PATH" < "${NOAA_HOME}/templates/webpanel_schema.sql"
)




Loading…
取消
儲存