2021-01-06 17:46:47 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
sudo usermod --shell /bin/bash www-data
|
|
|
|
|
|
|
|
git clone https://github.com/wallabag/wallabag.git /var/www/wallabag
|
|
|
|
mv /tmp/wallabag-params.yml /var/www/wallabag/app/config/parameters.yml
|
|
|
|
chown -R www-data:www-data /var/www/wallabag
|
2021-01-06 19:07:30 +00:00
|
|
|
chown www-data:www-data /tmp/entries.json
|
2021-01-06 17:46:47 +00:00
|
|
|
|
|
|
|
sudo -i -u www-data bash << EOF
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
cd /var/www/wallabag
|
|
|
|
make install
|
|
|
|
php bin/console --env=prod fos:user:create jdormit jeremy.dormitzer@gmail.com "$ADMIN_PASSWORD" --super-admin
|
2021-01-06 19:07:30 +00:00
|
|
|
php bin/console --env=prod wallabag:import --importer=v2 jdormit /tmp/entries.json
|
2021-01-06 17:46:47 +00:00
|
|
|
EOF
|