Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4629333
add support for custom data directory
May 14, 2021
1f168b2
Merge branch 'testing' into testing
ericgaspar Jul 16, 2022
b0c0e47
Merge branch 'testing' into pr/407
ericgaspar Jul 16, 2022
2f4103d
Merge branch 'testing' of https://github.com/oiseauroch/nextcloud_ynh…
ericgaspar Jul 16, 2022
921b83c
set datadir
ericgaspar Jul 16, 2022
3908ebf
Merge branch 'testing' into pr/407
ericgaspar Jan 28, 2023
5a1988d
Merge branch 'testing' into pr/407
ericgaspar Feb 15, 2023
0339315
Merge branch 'testing' into pr/407
ericgaspar Feb 24, 2023
4f1deba
Merge branch 'testing' into pr/407
ericgaspar Jun 11, 2023
10f4cce
Merge branch 'testing' into pr/407
ericgaspar Oct 12, 2023
225f1bb
move function to common.sh (#764)
ericgaspar Dec 19, 2024
773ada7
add default_phone_region
ericgaspar Dec 19, 2024
3fb2bb6
Update nginx.conf
ericgaspar Dec 19, 2024
25341f9
Update install
ericgaspar Dec 19, 2024
85c3187
Fix upgrade exploding when $app is nextcloud__2, __3 etc because the …
rodinux Dec 20, 2024
5e4f393
Bump package revision
yunohost-bot Dec 20, 2024
a8378a5
Auto-update READMEs
yunohost-bot Dec 20, 2024
be58bb1
Patch (#768)
ericgaspar Dec 21, 2024
ff3899f
Merge branch 'master' into testing
ericgaspar Dec 24, 2024
e938aeb
Fix fail2ban failregex
looowizz Dec 26, 2024
1a1d9d1
30.0.5
ericgaspar Jan 17, 2025
863381c
Auto-update READMEs
yunohost-bot Jan 17, 2025
ced3d91
Update restore
ericgaspar Jan 19, 2025
dc0fb3d
Update upgrade (#777)
ericgaspar Jan 19, 2025
c6489b6
Update upgrade
ericgaspar Jan 19, 2025
57b41db
Update manifest.toml
ericgaspar Jan 19, 2025
8947bb8
Update manifest.toml
ericgaspar Jan 21, 2025
4c23d65
Update post_user_delete (#778)
ericgaspar Jan 26, 2025
6f01759
Merge branch 'master' into testing
ericgaspar Jan 30, 2025
7f1b13d
Update upgrade (#779)
ericgaspar Jan 30, 2025
8fa00f9
[fix] Remove eval JS patch cause yunohost tiles doesn't exists anymore
zamentur Feb 5, 2025
b9d53ed
Update manifest.toml
ericgaspar Feb 9, 2025
11eb850
Auto-update READMEs
yunohost-bot Feb 9, 2025
577da1f
cleaning
ericgaspar Feb 9, 2025
529c368
cleaning
ericgaspar Feb 9, 2025
a4c2c06
Update remove
ericgaspar Feb 9, 2025
83bb5a6
[enh] Allow login by mail (#783)
zamentur Feb 11, 2025
0d856a8
30.0.6
ericgaspar Feb 13, 2025
5e7de8c
Auto-update READMEs
yunohost-bot Feb 13, 2025
c9e4442
Merge branch 'master' into testing
ericgaspar Feb 13, 2025
a902183
Update manifest.toml
ericgaspar Feb 15, 2025
ffaebda
Merge branch 'testing' into master
kay0u Feb 15, 2025
ff44cfd
Merge pull request #770 from looowizz/master
kay0u Feb 15, 2025
631ac0c
Update manifest.toml
ericgaspar Feb 16, 2025
5d71127
Auto-update READMEs
yunohost-bot Feb 16, 2025
11e30da
[enh] Create custom fail2ban conf, with datepattern and more regex to…
kay0u Feb 18, 2025
04e8948
Merge branch 'master' into testing
ericgaspar Feb 22, 2025
9049d47
Update systemd.service
ericgaspar Feb 22, 2025
913ea56
Update DESCRIPTION_fr.md
ericgaspar Feb 22, 2025
7d70d56
Auto-update READMEs
yunohost-bot Feb 22, 2025
a86749d
Merge branch 'testing' into pr/407
ericgaspar Feb 24, 2025
ff7bb3f
Merge branch 'testing' into pr/407
ericgaspar Feb 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ php_dependencies="php${YNH_PHP_VERSION}-fpm php${YNH_PHP_VERSION}-bz2 php${YNH_P

pkg_dependencies="imagemagick libmagickcore-6.q16-6-extra acl tar smbclient at $php_dependencies"


set_datadir() {
if [[ -f $final_path/config/config.php ]]; then
datadir=$(grep datadirectory < $final_path/config/config.php | sed "s/.*=>.'\([^']*\)'.*/\1/")
else
datadir="/home/yunohost.app/$app/data"
fi
}


#=================================================
# EXPERIMENTAL HELPERS
#=================================================
Expand Down
2 changes: 2 additions & 0 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ ynh_backup --src_path="/etc/cron.d/$app"
#=================================================
ynh_print_info --message="Backing up data directory..."

set_datadir

ynh_backup --src_path="$datadir" --is_big

#=================================================
Expand Down
2 changes: 2 additions & 0 deletions scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
ynh_script_progression --message="Restoring data directory..." --weight=2

set_datadir

# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup.
ynh_restore_file --origin_path="$datadir" --not_mandatory

Expand Down
4 changes: 2 additions & 2 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ local mount_id=$(exec_occ files_external:create --output=json \
&& ynh_print_warn --message="Unable to create external storage" \
|| exec_occ files_external:option "$mount_id" enable_sharing true
}
# Define app's data directory
datadir="/home/yunohost.app/$app/data"
# Define app's data directory (defined in _common.sh)
set_datadir

if [ "$upgrade_type" == "UPGRADE_APP" ]
then
Expand Down