Compare commits

..

No commits in common. "9f600f4e351d4974a40334ac892e26e4319e455e" and "7980bab312d8d7f3b4bf5e747b3a2a53d5c4a24b" have entirely different histories.

6 changed files with 13 additions and 20 deletions

View file

@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
This is a dummy description of this app features This is a dummy description of this app features
**Shipped version:** 1.5~ynh1 **Shipped version:** 1.0~ynh1
## Screenshots ## Screenshots

View file

@ -19,7 +19,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Ceci est une fausse description des fonctionalités de l'app Ceci est une fausse description des fonctionalités de l'app
**Version incluse :** 1.5~ynh1 **Version incluse :** 1.0~ynh1
## Captures décran ## Captures décran

View file

@ -1,3 +1,2 @@
<?php <?php
$DATAACCESS_TOKEN = '__ACCESS_TOKEN__'; $DATAACCESS_TOKEN = '__ACCESS_TOKEN__';
$APP_NAME = '__NAME__';

View file

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

View file

@ -155,16 +155,10 @@ chown $app:$app "$install_dir/config.php"
chmod -R 700 "$install_dir/src/" chmod -R 700 "$install_dir/src/"
chown -R $app:$app "$install_dir/src/" chown -R $app:$app "$install_dir/src/"
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); ";
php -r "require '/var/www/$app/src/server.php'; updateRemoteData(); "
chown $app:$app "$install_dir/data.toml" chown $app:$app "$install_dir/data.toml"
chmod 700 "$install_dir/data.toml" chmod 700 "$install_dir/data.toml"
echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \"" >>"/etc/cron.d/$app" crontab -l | { cat; echo "*/10 * * * * php -r \"require '/var/www/$app/src/server.php'; updateRemoteData(); \""; } | crontab -
php -r "require '/var/www/$app/src/server.php'; chooseTodayPerson(); "
chown $app:$app "$install_dir/src/todays.php"
chmod 700 "$install_dir/src/todays.php"
echo "0 0 * * * php -r \"require '/var/www/$app/src/server.php'; chooseTodayPerson(); \"" >>"/etc/cron.d/$app"
### For more complex cases where you want to replace stuff using regexes, ### For more complex cases where you want to replace stuff using regexes,
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed) ### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
@ -191,7 +185,7 @@ ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
# ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
### `ynh_systemd_action` is used to start a systemd service for an app. ### `ynh_systemd_action` is used to start a systemd service for an app.
### Only needed if you have configure a systemd service ### Only needed if you have configure a systemd service
@ -202,7 +196,7 @@ ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
### - And the section "STOP SYSTEMD SERVICE" and "START SYSTEMD SERVICE" in the change_url script ### - And the section "STOP SYSTEMD SERVICE" and "START SYSTEMD SERVICE" in the change_url script
# Start a systemd service # Start a systemd service
# ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -133,9 +133,9 @@ chown -R $app:$app "$install_dir/src/"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
# ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
# ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT