mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Upgrade to 2018.09
This commit is contained in:
parent
faf3b2b707
commit
67d8e51586
5 changed files with 13 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/friendica/friendica-addons/archive/2018.05.zip
|
SOURCE_URL=https://github.com/friendica/friendica-addons/archive/2018.09.zip
|
||||||
SOURCE_SUM=e00143e9302b25b01886deac5302d326
|
SOURCE_SUM=9a9e4702419e369ffc7ecfd8fb5b5f97
|
||||||
SOURCE_SUM_PRG=md5sum
|
SOURCE_SUM_PRG=md5sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/friendica/friendica/archive/2018.05.zip
|
SOURCE_URL=https://github.com/friendica/friendica/archive/2018.09.zip
|
||||||
SOURCE_SUM=9b5497423ca7ce4b581fa97ca12f412d
|
SOURCE_SUM=f127463d2c6c1c593b1f1ae5ea80dcf3
|
||||||
SOURCE_SUM_PRG=md5sum
|
SOURCE_SUM_PRG=md5sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -138,7 +138,7 @@ ynh_add_fpm_config
|
||||||
sudo chown -R www-data:www-data $final_path
|
sudo chown -R www-data:www-data $final_path
|
||||||
# 3 - some extra folders
|
# 3 - some extra folders
|
||||||
sudo mkdir -p "${final_path}/view/smarty3"
|
sudo mkdir -p "${final_path}/view/smarty3"
|
||||||
sudo chmod -R 777 $final_path/view/smarty3
|
sudo chmod -R 775 $final_path/view/smarty3
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
# Set up poller
|
# Set up poller
|
||||||
|
|
|
@ -84,7 +84,7 @@ ynh_install_app_dependencies 'php-mbstring|base-files(<<9.0)' php5-cli 'php5-ima
|
||||||
|
|
||||||
|
|
||||||
# set permission
|
# set permission
|
||||||
sudo chmod -R 777 $final_path/view/smarty3
|
chmod -R 775 $final_path/view/smarty3
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE CRON FILE
|
# RESTORE THE CRON FILE
|
||||||
|
|
|
@ -40,6 +40,9 @@ ynh_install_app_dependencies 'php-mbstring|base-files(<<9.0)' php5-cli 'php5-ima
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file in the temp dir
|
||||||
cp -a "$final_path/.htconfig.php" "$tmpdir/.htconfig.php"
|
cp -a "$final_path/.htconfig.php" "$tmpdir/.htconfig.php"
|
||||||
|
if [ -f $final_path/.htaccess ]; then
|
||||||
|
cp -a "$final_path/.htaccess" "$tmpdir/.htaccess"
|
||||||
|
fi
|
||||||
|
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
if [ -z $final_path ]; then
|
if [ -z $final_path ]; then
|
||||||
|
@ -57,6 +60,9 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
sudo cp -a "$tmpdir/.htconfig.php" "${final_path}"
|
sudo cp -a "$tmpdir/.htconfig.php" "${final_path}"
|
||||||
|
if [ -f $final_path/.htaccess ]; then
|
||||||
|
cp -af "$tmpdir/.htaccess" "${final_path}"
|
||||||
|
fi
|
||||||
sudo rm -Rf "$tmpdir"
|
sudo rm -Rf "$tmpdir"
|
||||||
|
|
||||||
#Copy Addons
|
#Copy Addons
|
||||||
|
@ -65,7 +71,7 @@ ynh_setup_source "$final_path/addon" "addons"
|
||||||
|
|
||||||
# 3 - some extra folders
|
# 3 - some extra folders
|
||||||
sudo mkdir -p "${final_path}/view/smarty3"
|
sudo mkdir -p "${final_path}/view/smarty3"
|
||||||
sudo chmod -R 777 $final_path/view/smarty3
|
sudo chmod -R 775 $final_path/view/smarty3
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
|
Loading…
Add table
Reference in a new issue