mirror of
https://github.com/YunoHost-Apps/strut_ynh.git
synced 2024-09-03 20:26:33 +02:00
[fix] Set master sources instead of testing sources
This commit is contained in:
parent
e92fada157
commit
b8848c0308
7 changed files with 34 additions and 22 deletions
|
@ -3,6 +3,14 @@ strut_ynh
|
||||||
|
|
||||||
Strut package for YunoHost
|
Strut package for YunoHost
|
||||||
|
|
||||||
|
## Official Website: http://strut.io
|
||||||
|
|
||||||
|
## How to report a bug ?
|
||||||
|
|
||||||
|
You can report an issue concerning this package on the official YunoHost bug tracker : https://dev.yunohost.org .
|
||||||
|
|
||||||
|
## About Strut
|
||||||
|
|
||||||
[](http://strut.io)
|
[](http://strut.io)
|
||||||
|
|
||||||
#### A GUI / Authoring Tool for ImpressJS and Bespoke.js ####
|
#### A GUI / Authoring Tool for ImpressJS and Bespoke.js ####
|
||||||
|
@ -12,4 +20,3 @@ Don't know what ImpressJS is? Check out the ImpressJS demo presentation: http:/
|
||||||
### Start using Strut! http://strut.io/editor/
|
### Start using Strut! http://strut.io/editor/
|
||||||
(works in Firefox, Chrome and Safari with basic support for IE10)
|
(works in Firefox, Chrome and Safari with basic support for IE10)
|
||||||
|
|
||||||
### Official Website: http://strut.io ###
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "Strut",
|
"name": "Strut",
|
||||||
"id": "strut",
|
"id": "strut",
|
||||||
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Strut is a slide editor creating impress.js presentations.",
|
"en": "Strut is a slide editor creating impress.js presentations.",
|
||||||
"fr": "Strut est un éditeur de slide permetant de créer des présentation impress.js."
|
"fr": "Strut est un éditeur de slide permetant de créer des présentation impress.js."
|
||||||
|
@ -10,6 +11,9 @@
|
||||||
"email": "valentin@grimaud.me"
|
"email": "valentin@grimaud.me"
|
||||||
},
|
},
|
||||||
"multi_instance": "true",
|
"multi_instance": "true",
|
||||||
|
"services": [
|
||||||
|
"nginx"
|
||||||
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
APP=${!#}
|
|
||||||
|
|
||||||
# The parameter $1 is the backup directory location dedicated to the app
|
# The parameter $1 is the backup directory location dedicated to the app
|
||||||
BACKUP_DIR=$1
|
BACKUP_DIR=$1
|
||||||
|
|
||||||
|
# The parameter $2 is theid of the app instance ex: strut__2
|
||||||
|
APP=$2
|
||||||
|
|
||||||
domain=$(sudo yunohost app setting $APP domain)
|
domain=$(sudo yunohost app setting $APP domain)
|
||||||
|
|
||||||
# Copy the app files
|
# Copy the app files
|
||||||
final_path=/var/www/$APP
|
final_path=/var/www/$APP
|
||||||
sudo cp -a $final_path "${BACKUP_DIR}/www"
|
sudo cp -a $final_path "${BACKUP_DIR}/www"
|
||||||
|
|
||||||
# Copy the conf files
|
# Copy the conf files
|
||||||
sudo mkdir -p "${BACKUP_DIR}/conf"
|
sudo mkdir -p "${BACKUP_DIR}/conf"
|
||||||
sudo cp -a /etc/nginx/conf.d/$domain.d/$APP.conf "${BACKUP_DIR}/conf/nginx.conf"
|
sudo cp -a /etc/nginx/conf.d/$domain.d/$APP.conf "${BACKUP_DIR}/conf/nginx.conf"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
APP=${!#}
|
APP='strut'
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
|
@ -31,9 +30,9 @@ sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$APP.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$APP.conf
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo yunohost app setting $APP skipped_uris -v "/"
|
sudo yunohost app setting $APP skipped_uris -v "/"
|
||||||
if [ "$public_site" = "No" ];
|
if [ "$public_site" = "No" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
||||||
fi
|
fi
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
APP=${!#}
|
domain=$(sudo yunohost app setting strut domain)
|
||||||
|
|
||||||
domain=$(sudo yunohost app setting $APP domain)
|
sudo rm -rf /var/www/strut
|
||||||
|
sudo rm -f /etc/nginx/conf.d/$domain.d/strut.conf
|
||||||
sudo rm -rf /var/www/$APP
|
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$APP.conf
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
APP=${!#}
|
|
||||||
|
|
||||||
# The parameter $1 is the backup directory location dedicated to the app
|
# The parameter $1 is the backup directory location dedicated to the app
|
||||||
BACKUP_DIR=$1
|
BACKUP_DIR=$1
|
||||||
|
|
||||||
|
# The parameter $2 is the id of the app instance ex: strut__2
|
||||||
|
APP=$2
|
||||||
|
|
||||||
domain=$(sudo yunohost app setting $APP domain)
|
domain=$(sudo yunohost app setting $APP domain)
|
||||||
path=$(sudo yunohost app setting $APP path)
|
path=$(sudo yunohost app setting $APP path)
|
||||||
|
@ -23,7 +24,7 @@ if [ -d $final_path ]; then
|
||||||
echo "There is already a directory: $final_path " | sudo tee /dev/stderr
|
echo "There is already a directory: $final_path " | sudo tee /dev/stderr
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sudo cp -a "${BACKUP_DIR}/www" $final_path
|
sudo cp -a "${BACKUP_DIR}/www" $final_path
|
||||||
sudo chown -R www-data: $final_path
|
sudo chown -R www-data: $final_path
|
||||||
|
|
||||||
# Restore the conf files
|
# Restore the conf files
|
||||||
|
@ -38,9 +39,9 @@ sudo cp -a "${BACKUP_DIR}/conf/nginx.conf" $conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
||||||
# Set ssowat config
|
# Set ssowat config
|
||||||
sudo yunohost app setting $APP skipped_uris -v "/"
|
sudo yunohost app setting $APP skipped_uris -v "/"
|
||||||
if [ "$public_site" = "No" ];
|
if [ "$public_site" = "No" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
||||||
fi
|
fi
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
APP=${!#}
|
APP='strut'
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting $APP domain)
|
domain=$(sudo yunohost app setting $APP domain)
|
||||||
|
@ -26,9 +26,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$APP.conf
|
||||||
|
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo yunohost app setting $APP skipped_uris -v "/"
|
sudo yunohost app setting $APP skipped_uris -v "/"
|
||||||
if [ "$public_site" = "No" ];
|
if [ "$public_site" = "No" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
sudo yunohost app setting $APP protected_uris -v "/index.html,/scripts"
|
||||||
fi
|
fi
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue