1
0
Fork 0
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:
mbugeia 2015-02-25 17:31:18 +01:00
parent a943581caf
commit 4c379d4dce
3 changed files with 15 additions and 8 deletions

View file

@ -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.
![2015-02-19 16_58_52-yunohost admin](https://cloud.githubusercontent.com/assets/6364564/6270409/1597e646-b85a-11e4-97af-b3b5b2a6b286.png)
Configure the app.
![2015-02-19 16_59_28-yunohost admin](https://cloud.githubusercontent.com/assets/6364564/6270411/19f9a54e-b85a-11e4-83da-eb813c0457f7.png)
Click install.
Upgrade from command line with:
sudo yunohost app upgrade -u https://github.com/mbugeia/kanboard_ynh kanboard

View file

@ -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*

View file

@ -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*