Update planka
This commit is contained in:
parent
fef7c16105
commit
59a922868b
@ -16,7 +16,8 @@ update_os
|
|||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
unzip \
|
unzip \
|
||||||
build-essential
|
build-essential \
|
||||||
|
python3-venv
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
@ -47,7 +48,7 @@ cd /opt/planka/planka
|
|||||||
$STD npm install
|
$STD npm install
|
||||||
cp .env.sample .env
|
cp .env.sample .env
|
||||||
SECRET_KEY=$(openssl rand -hex 64)
|
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:8080#g" /opt/planka/planka/.env
|
||||||
sed -i "s#postgres@localhost#planka:$DB_PASS@localhost#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
|
$STD npm run db:init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user