mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 00:35:54 +00:00
Update planka
This commit is contained in:
@@ -44,13 +44,13 @@ fetch_and_deploy_gh_release "planka" "plankanban/planka" "prebuild" "latest" "/o
|
||||
|
||||
msg_info "Setup planka"
|
||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||
SECRET_KEY=$(openssl rand -hex 64)
|
||||
cd /opt/planka/planka
|
||||
$STD npm install
|
||||
cp .env.sample .env
|
||||
SECRET_KEY=$(openssl rand -hex 64)
|
||||
sed -i "s#http://localhost:1337#http://$LOCAL_IP:8080#g" /opt/planka/planka/.env
|
||||
sed -i "s#http://localhost:1337#http://$LOCAL_IP:1337#g" /opt/planka/planka/.env
|
||||
sed -i "s#postgres@localhost#planka:$DB_PASS@localhost#g" /opt/planka/planka/.env
|
||||
sed -i "s#notsecretkey#${SECRET_KEY}#g" /opt/planka/planka/.env
|
||||
sed -i "s#notsecretkey#$SECRET_KEY#g" /opt/planka/planka/.env
|
||||
$STD npm run db:init
|
||||
msg_ok "Installed planka"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user