mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Updated to version 3.8.5
This commit is contained in:
parent
dc7b0521b3
commit
63dba05800
6 changed files with 20 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
[](https://install-app.yunohost.org/?app=hubzilla)
|
||||
<br>
|
||||
Version: **3.8.4**
|
||||
Version: **3.8.5**
|
||||
|
||||
## Hubzilla
|
||||
[Hubzilla](http://hubzilla.org) is a powerful platform for creating interconnected websites featuring a decentralized identity, communications, and permissions framework built using common webserver technology.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/3.8.4/core-3.8.4.tar.gz
|
||||
SOURCE_SUM=5a6df2c6fdcfaa21d00fc688bbc5d21a48e1d2885f7bd0286f180df8399ac51b
|
||||
SOURCE_URL=https://framagit.org/hubzilla/core/-/archive/3.8.5/core-3.8.5.tar.gz
|
||||
SOURCE_SUM=a4713fe5cd181abc62e0b6d7470b5ba642be07ecc63a5eb3c65c2050dba197d4
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/3.8.4/addons-3.8.4.tar.gz
|
||||
SOURCE_SUM=a8aa98c7a530afd533c44bd265e7872453524eddfac41c2731d4fe04e326937b
|
||||
SOURCE_URL=https://framagit.org/hubzilla/addons/-/archive/3.8.5/addons-3.8.5.tar.gz
|
||||
SOURCE_SUM=a00e2248ef7a71ac6aaf458c3411cd9caebe11f032bae1354f6c1cbf7f7cc8b0
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=
|
||||
|
|
2
conf/sql/385.sql
Normal file
2
conf/sql/385.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE pconfig ADD updated datetime NOT NULL DEFAULT '0001-01-01 00:00:00';
|
||||
ALTER TABLE pconfig ADD INDEX pconfig_updated (updated);
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"url": "https://github.com/redmatrix/hubzilla",
|
||||
"license": "Free as-is",
|
||||
"version": "3.8.4",
|
||||
"version": "3.8.5",
|
||||
"maintainer": {
|
||||
"name": "Anmol Sharma",
|
||||
"email": "anmol@datamol.org",
|
||||
|
|
|
@ -20,6 +20,10 @@ path_url=$(ynh_app_setting_get $app path)
|
|||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
upload=$(ynh_app_setting_get $app upload)
|
||||
db_name=$(ynh_app_setting_get $app db_name)
|
||||
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
||||
version=( grep STD_VERSION $final_path/boot.php | cut -c 38- | rev | cut -c 5- | rev )
|
||||
last_update=( grep update_time: /etc/yunohost/apps/$app/settings.yml | cut -c 14- )
|
||||
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
|
@ -136,6 +140,14 @@ sudo cp ../conf/poller-cron /etc/cron.d/$app
|
|||
#=================================================
|
||||
ynh_install_app_dependencies php-mbstring php5-cli 'php5-imagick|php-imagick' php5-gd php5-mcrypt 'php-xml|base-files(<<9.0)'
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION FOR SPECIFIC MYSQL UPDATE
|
||||
#=================================================
|
||||
|
||||
# Check version and if this version was a fresh install push mysq query
|
||||
if [ -z "$last_update" ] | [ "$version" == "3.8.4" ]; then
|
||||
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/385.sql"
|
||||
fi
|
||||
|
||||
# Make app public
|
||||
ynh_app_setting_set $app skipped_uris "/"
|
||||
|
|
Loading…
Add table
Reference in a new issue