mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Fix install and upgrade, update readme
This commit is contained in:
parent
a943581caf
commit
4c379d4dce
3 changed files with 15 additions and 8 deletions
|
@ -7,9 +7,16 @@ Kanboard is a simple visual task board web application.
|
|||
|
||||
Official website: <http://kanboard.net>
|
||||
|
||||
Kanboard v1.0.11
|
||||
Kanboard v1.0.12
|
||||
|
||||
Yunohost forum thread: <https://forum.yunohost.org/t/kanboard-package/78>
|
||||
|
||||
Upgrade with:
|
||||
Installation:
|
||||
Use yunohost admin panel.
|
||||

|
||||
Configure the app.
|
||||

|
||||
Click install.
|
||||
|
||||
Upgrade from command line with:
|
||||
sudo yunohost app upgrade -u https://github.com/mbugeia/kanboard_ynh kanboard
|
|
@ -34,11 +34,11 @@ sudo sed -i "s/yuno_dbpdw/$db_pwd/g" $final_path/config.php
|
|||
sudo sed -i "s/yuno_dbuser/$app/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_admin/$admin/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_email/$email/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_url/$domain$path/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_domain/$domain/g" $final_path/config.php
|
||||
|
||||
# Set permissions to data directory
|
||||
# Set permissions to data directory and config file
|
||||
sudo chown -R www-data:www-data $final_path/data
|
||||
sudo chown www-data:www-data $final_path/config.php
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||
|
|
|
@ -9,12 +9,12 @@ email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")
|
|||
db_pwd=$(sudo yunohost app setting $app mysqlpwd)
|
||||
|
||||
final_path=/var/www/$app
|
||||
mv $final_path $final_path.old
|
||||
sudo mv $final_path $final_path.old
|
||||
|
||||
sudo mkdir -p $final_path
|
||||
sudo cp -a ../sources/* $final_path
|
||||
sudo cp -a $final_path.old/data $final_path/data
|
||||
rm -Rf $final_path.old
|
||||
sudo rm -Rf $final_path.old
|
||||
|
||||
# Copy and edit config.php
|
||||
sudo cp ../conf/config.php $final_path
|
||||
|
@ -22,11 +22,11 @@ sudo sed -i "s/yuno_dbpdw/$db_pwd/g" $final_path/config.php
|
|||
sudo sed -i "s/yuno_dbuser/$app/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_admin/$admin/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_email/$email/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_url/$domain$path/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_domain/$domain/g" $final_path/config.php
|
||||
|
||||
# Set permissions to data directory
|
||||
# Set permissions to data directory and config file
|
||||
sudo chown -R www-data:www-data $final_path/data
|
||||
sudo chown www-data:www-data $final_path/config.php
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||
|
|
Loading…
Add table
Reference in a new issue