mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
fix web install paths
This commit is contained in:
parent
79709fbe69
commit
c623e708c7
4 changed files with 7 additions and 12 deletions
|
@ -6,4 +6,6 @@ location YNH_LOCATION {
|
|||
|
||||
proxy_pass http://127.0.0.1:2368;
|
||||
proxy_redirect off;
|
||||
|
||||
client_max_body_size 100M;
|
||||
}
|
||||
|
|
|
@ -30,15 +30,6 @@
|
|||
"example": "/blog",
|
||||
"default": "/blog"
|
||||
},
|
||||
{
|
||||
"name": "public_site",
|
||||
"ask": {
|
||||
"en": "Is it a public Ghost site ?",
|
||||
"fr": "Est-ce un site public ?"
|
||||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"default": "Yes"
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
"ask": {
|
||||
|
|
|
@ -127,14 +127,16 @@ admin_name=$(sudo yunohost user list --json | python ../conf/user_getname.py $ad
|
|||
admin_mail=$(sudo yunohost user list --json | python ../conf/user_getmail.py $admin)
|
||||
|
||||
# first round initialize
|
||||
curl -kL -X GET http://localhost:2368${path%/}/ghost
|
||||
curl -kL -X GET http://127.0.0.1:2368${path%/}
|
||||
curl -kL -X GET http://127.0.0.1:2368${path%/}
|
||||
|
||||
# setup admin details
|
||||
curl -kL -X POST http://localhost:2368${path%/}/ghost/api/v0.1/authentication/setup/ \
|
||||
curl -kL -X POST http://127.0.0.1:2368${path%/}/ghost/api/v0.1/authentication/setup/ \
|
||||
--data-urlencode "setup[0][name]=$admin_name" \
|
||||
--data-urlencode "setup[0][email]=$admin_mail" \
|
||||
--data-urlencode "setup[0][password]=$password" \
|
||||
--data-urlencode "setup[0][blogTitle]=My Yunohost blog"
|
||||
|
||||
sudo yunohost app setting ghostblog admin -v $admin
|
||||
sudo yunohost app setting ghostblog password -v $password
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ sudo update-rc.d ynh-ghostblog remove
|
|||
sudo rm /etc/init.d/ynh-ghostblog
|
||||
sudo yunohost service remove ynh-ghostblog
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ghostblog.conf
|
||||
sudo rm -f /var/log/ghostblog.log
|
||||
sudo rm -f /var/log/ynh-ghostblog.log*
|
||||
sudo rm -rf /var/run/yunohost/ghostblog
|
||||
sudo rm -f /etc/logrotate.d/ynh-ghostblog
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue