Compare commits

...

7 Commits

Author SHA1 Message Date
github-actions[bot]
fc75c6657b
Update CHANGELOG.md (#357)
Some checks are pending
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-19 10:51:21 +01:00
CanbiZ
1b8089ff2b
move secret key up (#356) 2024-11-19 10:50:27 +01:00
CanbiZ
497819f112
Update FUNDING.yml (#352) 2024-11-19 10:50:15 +01:00
github-actions[bot]
7192b0f8dd
Update CHANGELOG.md (#351)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-19 07:29:44 +01:00
github-actions[bot]
ba965758db
Update CHANGELOG.md (#344)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-19 07:28:53 +01:00
CanbiZ
3b29f08590
Fix Wallos Update (#339)
* (Maintenance) Optimize DB Check Wallos 

Check if wallos.db exists

* Switch mkdir

* switch to logos

* Update wallos.sh
2024-11-19 07:24:00 +01:00
Erfan Samandarian
82d287959e
Fix: add gnupg to installed dependencies (#349) 2024-11-19 07:23:45 +01:00
4 changed files with 22 additions and 5 deletions

2
.github/FUNDING.yml vendored
View File

@ -1 +1 @@
ko_fi: proxmoxhelperscripts
ko_fi: community_scripts

View File

@ -18,6 +18,21 @@ Do not break established syntax in this file, as it is automatically updated by
## 2024-11-19
### Changed
### 🚀 Updated Scripts
- Linkwarden: Move Secret Key above in install.sh [@MickLesk](https://github.com/MickLesk) ([#356](https://github.com/community-scripts/ProxmoxVE/pull/356))
- Linkwarden: add gnupg to installed dependencies [@erfansamandarian](https://github.com/erfansamandarian) ([#349](https://github.com/community-scripts/ProxmoxVE/pull/349))
- Fix Wallos Update [@MickLesk](https://github.com/MickLesk) ([#339](https://github.com/community-scripts/ProxmoxVE/pull/339))
### 🧰 Maintenance
- [chore] Update FUNDING.yml [@MickLesk](https://github.com/MickLesk) ([#352](https://github.com/community-scripts/ProxmoxVE/pull/352))
## 2024-11-18
### Changed

View File

@ -63,14 +63,15 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
msg_info "Updating ${APP} to ${RELEASE}"
cd /opt
wget -q "https://github.com/ellite/Wallos/archive/refs/tags/v${RELEASE}.zip"
mkdir -p /opt/logos
mv /opt/wallos/db/wallos.db /opt/wallos.db
mv /opt/wallos/images/uploads /opt/images/uploads
mv /opt/wallos/images/uploads/logos /opt/logos/
unzip -q v${RELEASE}.zip
rm -rf /opt/wallos
mv Wallos-${RELEASE} /opt/wallos
rm -rf /opt/wallos/db/wallos.empty.db
mv /opt/wallos.db /opt/wallos/db/wallos.db
mv /opt/images/uploads /opt/wallos/images/uploads
mv /opt/logos/* /opt/wallos/images/uploads/logos
chown -R www-data:www-data /opt/wallos
chmod -R 755 /opt/wallos
mkdir -p /var/log/cron

View File

@ -21,7 +21,8 @@ $STD apt-get install -y \
mc \
make \
postgresql \
cargo
cargo \
gnupg
msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
@ -46,6 +47,7 @@ msg_info "Setting up PostgreSQL DB"
DB_NAME=linkwardendb
DB_USER=linkwarden
DB_PASS="$(openssl rand -base64 18 | tr -d '/' | cut -c1-13)"
SECRET_KEY="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)"
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@ -96,7 +98,6 @@ $STD yarn
$STD npx playwright install-deps
$STD yarn playwright install
IP=$(hostname -I | awk '{print $1}')
SECRET_KEY="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)"
env_path="/opt/linkwarden/.env"
echo "
NEXTAUTH_SECRET=${SECRET_KEY}