Update wallabag-install.sh
This commit is contained in:
parent
70a72f1356
commit
14310879d2
@ -4,7 +4,7 @@
|
|||||||
# Author: MickLesk (Canbiz)
|
# Author: MickLesk (Canbiz)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
@ -14,10 +14,10 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
make \
|
make \
|
||||||
apache2 \
|
apache2 \
|
||||||
libapache2-mod-php \
|
libapache2-mod-php \
|
||||||
redis
|
redis
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
@ -33,10 +33,10 @@ $STD mariadb -u root -e "CREATE DATABASE $DB_NAME;"
|
|||||||
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
|
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
|
||||||
$STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
$STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
||||||
{
|
{
|
||||||
echo "Wallabag Credentials"
|
echo "Wallabag Credentials"
|
||||||
echo "Database User: $DB_USER"
|
echo "Database User: $DB_USER"
|
||||||
echo "Database Password: $DB_PASS"
|
echo "Database Password: $DB_PASS"
|
||||||
echo "Database Name: $DB_NAME"
|
echo "Database Name: $DB_NAME"
|
||||||
} >>~/wallabag.creds
|
} >>~/wallabag.creds
|
||||||
msg_ok "Set up Database"
|
msg_ok "Set up Database"
|
||||||
|
|
||||||
@ -48,12 +48,12 @@ useradd -d /opt/wallabag -s /bin/bash -M wallabag
|
|||||||
chown -R wallabag:wallabag /opt/wallabag
|
chown -R wallabag:wallabag /opt/wallabag
|
||||||
mv /opt/wallabag/app/config/parameters.yml.dist /opt/wallabag/app/config/parameters.yml
|
mv /opt/wallabag/app/config/parameters.yml.dist /opt/wallabag/app/config/parameters.yml
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's|database_name: wallabag|database_name: wallabag_db|' \
|
-e 's|database_name: wallabag|database_name: wallabag_db|' \
|
||||||
-e 's|database_port: ~|database_port: 3306|' \
|
-e 's|database_port: ~|database_port: 3306|' \
|
||||||
-e 's|database_user: root|database_user: wallabag|' \
|
-e 's|database_user: root|database_user: wallabag|' \
|
||||||
-e 's|database_password: ~|database_password: '"$DB_PASS"'|' \
|
-e 's|database_password: ~|database_password: '"$DB_PASS"'|' \
|
||||||
-e 's|secret: .*|secret: '"$SECRET_KEY"'|' \
|
-e 's|secret: .*|secret: '"$SECRET_KEY"'|' \
|
||||||
/opt/wallabag/app/config/parameters.yml
|
/opt/wallabag/app/config/parameters.yml
|
||||||
|
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
sudo -u wallabag make install --no-interaction
|
sudo -u wallabag make install --no-interaction
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user