fixed install probably

This commit is contained in:
Kristo Copani 2024-11-30 18:46:11 +02:00
parent 99015e903a
commit 0d52cf225f
2 changed files with 1 additions and 11 deletions

View File

@ -110,4 +110,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL. echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}{CL} \n" ${BL}http://${IP}${CL} \n"

View File

@ -55,29 +55,19 @@ cd /opt
wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/${RELEASE}/FireflyIII-${RELEASE}.tar.gz" wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/${RELEASE}/FireflyIII-${RELEASE}.tar.gz"
mkdir -p /opt/firefly-iii mkdir -p /opt/firefly-iii
tar -xzf FireflyIII-${RELEASE}.tar.gz -C /opt/firefly-iii tar -xzf FireflyIII-${RELEASE}.tar.gz -C /opt/firefly-iii
msg_ok "Downloaded"
msg_info "chown"
chown -R www-data:www-data /opt/firefly-iii chown -R www-data:www-data /opt/firefly-iii
chmod -R 775 /opt/firefly-iii/storage chmod -R 775 /opt/firefly-iii/storage
msg_ok "chown"
msg_info "env"
cd /opt/firefly-iii cd /opt/firefly-iii
cp .env.example .env cp .env.example .env
sed -i "s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly-iii/.env sed -i "s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly-iii/.env
sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$DB_PASS/" /opt/firefly-iii/.env sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$DB_PASS/" /opt/firefly-iii/.env
msg_ok "env"
msg_info "php composer"
echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
$STD composer install --no-dev --no-plugins --no-interaction $STD composer install --no-dev --no-plugins --no-interaction
msg_ok "php composer"
msg_info "artisan"
$STD php artisan firefly-iii:upgrade-database $STD php artisan firefly-iii:upgrade-database
$STD php artisan firefly-iii:correct-database $STD php artisan firefly-iii:correct-database
$STD php artisan firefly-iii:report-integrity $STD php artisan firefly-iii:report-integrity
$STD php artisan firefly-iii:laravel-passport-keys $STD php artisan firefly-iii:laravel-passport-keys
msg_ok "artisan"
msg_info "versioning"
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
msg_ok "Installed Firefly III" msg_ok "Installed Firefly III"