This commit is contained in:
Aliberk Sandıkçı 2024-01-07 13:18:47 +03:00
parent 2243997eec
commit 7980bab312
Signed by: asandikci
GPG Key ID: 25C67A03B5666BC1
3 changed files with 6 additions and 4 deletions

View File

@ -1,2 +1,2 @@
<?php
const DATAACCESS_TOKEN = '__ACCESS_TOKEN__';
$DATAACCESS_TOKEN = '__ACCESS_TOKEN__';

View File

@ -7,7 +7,7 @@ name = "Yurdle"
description.en = "yurdle package"
description.tr = "yurdle paketi"
version = "1.3~ynh1"
version = "1.4~ynh1"
maintainers = ["asandikci"]
@ -83,8 +83,8 @@ ram.runtime = "50M"
# This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
# ynh_setup_source --dest_dir="$install_dir"
# You can also define other assets than "main" and add --source_id="foobar" in the previous command
url = "https://git.aliberksandikci.com.tr/ifl/Yurdle/releases/download/v1.3/yurdle_server.tar.gz"
sha256 = "d0cdec293f18cf3a8214b9572d23d87f31810497e66c1bb505ca3fd3142d5813"
url = "https://git.aliberksandikci.com.tr/ifl/Yurdle/releases/download/v1.4/yurdle_server.tar.gz"
sha256 = "7bf5398a577b7a61f1e8b4a8d6f6c98a01889a683f696cf7257e9f09e0b60bbc"
# These infos are used by https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py
# to auto-update the previous asset urls and sha256sum + manifest version

View File

@ -156,6 +156,8 @@ chown $app:$app "$install_dir/config.php"
chmod -R 700 "$install_dir/src/"
chown -R $app:$app "$install_dir/src/"
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); ";
chown $app:$app "$install_dir/data.toml"
chmod 700 "$install_dir/data.toml"
crontab -l | { cat; echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \""; } | crontab -
### For more complex cases where you want to replace stuff using regexes,