mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
sed ynh-app-ghostblog ynh-ghostblog to have less than 15 characters
This commit is contained in:
parent
698c291790
commit
6d2d0c08d5
3 changed files with 12 additions and 12 deletions
|
@ -16,7 +16,7 @@
|
|||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Ghost"
|
||||
NAME=ynh-app-ghostblog
|
||||
NAME=ynh-ghost
|
||||
GHOST_ROOT=YNH_FINALPATH/ghost
|
||||
GHOST_GROUP=ghostblog
|
||||
GHOST_USER=ghostblog
|
||||
|
|
|
@ -54,15 +54,15 @@ sudo yunohost app setting ghostblog is_public -v $is_public
|
|||
|
||||
echo "Init script..."
|
||||
logfile=/var/log/ghostblog.log
|
||||
sudo touch /var/log/ynh-app-ghostblog.log
|
||||
sudo chown ghostblog: /var/log/ynh-app-ghostblog.log
|
||||
sudo touch /var/log/ynh-ghostblog.log
|
||||
sudo chown ghostblog: /var/log/ynh-ghostblog.log
|
||||
sed -i "s@YNH_FINALPATH@$final_path@g" ../conf/init-script
|
||||
sed -i "s@YNH_LOGFILE@$logfile@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
|
||||
sudo service ynh-app-ghostblog start
|
||||
sudo yunohost app service ynh-app-ghostblog -l $logfile
|
||||
sudo cp ../conf/init-script /etc/init.d/ynh-ghostblog
|
||||
sudo chmod +x /etc/init.d/ynh-ghostblog
|
||||
sudo update-rc.d ynh-ghostblog defaults
|
||||
sudo service ynh-ghostblog start
|
||||
sudo yunohost app service ynh-ghostblog -l $logfile
|
||||
|
||||
echo "Reloading Nginx..."
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ domain=$(sudo yunohost app setting ghostblog domain)
|
|||
|
||||
sudo userdel --remove ghostblog
|
||||
|
||||
sudo service ynh-app-ghostblog stop
|
||||
sudo update-rc.d ynh-app-ghostblog remove
|
||||
sudo rm /etc/init.d/ynh-app-ghostblog
|
||||
sudo yunohost app service -R ynh-app-ghostblog
|
||||
sudo service ynh-ghostblog stop
|
||||
sudo update-rc.d ynh-ghostblog remove
|
||||
sudo rm /etc/init.d/ynh-ghostblog
|
||||
sudo yunohost app service -R ynh-ghostblog
|
||||
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ghostblog.conf
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue