mirror of
https://github.com/YunoHost-Apps/helloworld_ynh.git
synced 2024-09-03 19:15:57 +02:00
Create upgrade
This commit is contained in:
parent
6c8212745a
commit
800f6cbe15
1 changed files with 19 additions and 0 deletions
19
scripts/upgrade
Normal file
19
scripts/upgrade
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
|
|
||||||
|
echo "Hello world!" > $install_dir/index.html
|
||||||
|
chown -R www-data: "$install_dir"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# NGINX CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring nginx web server..." --weight=1
|
||||||
|
|
||||||
|
# Create a dedicated nginx config
|
||||||
|
ynh_add_nginx_config
|
Loading…
Reference in a new issue