mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
change install path
This commit is contained in:
parent
4cd40d6e62
commit
c0fc134a61
3 changed files with 4 additions and 3 deletions
2
TODO.org
2
TODO.org
|
@ -30,7 +30,7 @@ admin@yunohost:/home/yunohost.app/ghostblog$ du -sh ghost/*
|
|||
* TODO implement upgrade
|
||||
* TODO mysql instead of sqlite
|
||||
** http://docs.ghost.org/usage/configuration/
|
||||
* TODO change installation path
|
||||
* DONE change installation path
|
||||
* DONE change pid file path
|
||||
** let's stay with /var/run/yunohost/ghostblog for the moment
|
||||
* DONE cleanup pid file
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Ghost"
|
||||
NAME=ynh-app-ghostblog
|
||||
GHOST_ROOT=/home/yunohost.app/ghostblog/ghost
|
||||
GHOST_ROOT=YNH_FINALPATH/ghost
|
||||
GHOST_GROUP=ghostblog
|
||||
GHOST_USER=ghostblog
|
||||
DAEMON=/usr/bin/node
|
||||
|
|
|
@ -22,7 +22,7 @@ sudo wget -O ../tmp/ghost-$version.zip "https://en.ghost.org/zip/ghost-$version.
|
|||
unzip ../tmp/ghost-$version.zip -d ../tmp/ghost
|
||||
|
||||
echo "Deploying source files..."
|
||||
final_path=/home/yunohost.app/ghostblog
|
||||
final_path=/var/www/ghostblog
|
||||
sudo mkdir -p $final_path
|
||||
sudo useradd -d $final_path ghostblog
|
||||
|
||||
|
@ -46,6 +46,7 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/ghostblog.conf
|
|||
echo "Init script..."
|
||||
sudo touch /var/log/ynh-app-ghostblog.log
|
||||
sudo chown ghostblog: /var/log/ynh-app-ghostblog.log
|
||||
sed -i "s@YNH_FINALPATH@$final_path@g" ../conf/init-script
|
||||
sudo cp ../conf/init-script /etc/init.d/ynh-app-ghostblog
|
||||
sudo chmod +x /etc/init.d/ynh-app-ghostblog
|
||||
sudo update-rc.d ynh-app-ghostblog defaults
|
||||
|
|
Loading…
Add table
Reference in a new issue