1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

Update package + install

This commit is contained in:
magikcypress 2016-08-29 16:55:20 +02:00
parent e269702a5d
commit b1b0ea4299
4 changed files with 13 additions and 29 deletions

View file

@ -2,6 +2,11 @@
## Spip for YunoHost
Version 1.0.2 (29/08/16)
- Fix Packaging [Source](https://forum.yunohost.org/t/news-about-app-management-and-packaging-in-yunohost-2-4/1379/1)
- Update SPIP Version
Version 1.0.1 (04/01/16)
- Delete SPIP sources

View file

@ -1,15 +1,19 @@
{
"name": "SPIP",
"packaging_format": 1,
"id": "spip",
"description": {
"en": "SPIP - publishing system for the Internet",
"fr": "SPIP - Système de publication pour lInternet"
},
"license": "GPL-3",
"developer": {
"maintainer": {
"name": "cyp",
"email": "cyp@rouquin.me",
"url": "http://rouquin.me"
"url": "http://www.rouquin.me"
},
"requirements": {
"yunohost": ">> 2.4.0"
},
"url": "http://www.spip.net/",
"multi_instance": "true",

View file

@ -31,8 +31,8 @@ sudo yunohost app setting spip mysqlpwd -v $db_pwd
# Download and extract files to the right place
final_path=/var/www
wget http://files.spip.org/spip/stable/spip-3.0.zip
unzip spip-3.0.zip -d $final_path
wget http://files.spip.org/spip/stable/spip-3.1.zip
unzip spip-3.1.zip -d $final_path
# Set permissions to spip directory
sudo chown -R www-data: $final_path

View file

@ -13,31 +13,6 @@ final_path=/var/www/spip
db_name=spip
# if [[ "$admin_spip" = "" ]];
# then
# mysql -u root -p$root_pwd $db_name -e "select MAX(user_login) from wp_users where user_status=0 INTO OUTFILE '/tmp/spipuser';"
# admin_spip=$(cat /tmp/spipuser)
# sudo rm -f /tmp/spipuser
# fi
# if [[ "$language" = "" ]];
# then
# language=$(sudo grep WPLANG $final_path/wp-config.php | cut -d"'" -f4)
# fi
# if [[ "$is_public" = "" ]];
# then
# mysql -u root -p$root_pwd $db_name -e "select option_value from wp_options WHERE option_name='active_plugins' INTO OUTFILE '/tmp/spipispublic';"
# grep -q http-authentication /tmp/spipispublic
# if [[ $? -eq 0 ]];
# then
# is_public=Yes
# else
# is_public=No
# fi
# sudo rm -f /tmp/spipispublic
# fi
# Check if admin is not null
if [[ "$admin_spip" = "" || "$is_public" = "" || "$language" = "" ]]; then
echo "Unable to upgrade, please contact support"