فهرست منبع

[autopatch] Autopatch to use timedatectl instead of legacy /etc/timezone

Yunohost-Bot 8 ماه پیش
والد
کامیت
46aab2b9ef
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      scripts/install
  2. 1 1
      scripts/upgrade

+ 1 - 1
scripts/install

@@ -4,7 +4,7 @@ source _common.sh
 source /usr/share/yunohost/helpers
 
 secret=$(ynh_string_random --length=24)
-timezone=$(cat /etc/timezone)
+timezone=$(timedatectl show --value --property=Timezone)
 
 #=================================================
 # INSTALL DEPENDENCIES

+ 1 - 1
scripts/upgrade

@@ -4,7 +4,7 @@ source _common.sh
 source /usr/share/yunohost/helpers
 
 secret=$(ynh_string_random --length=24)
-timezone=$(cat /etc/timezone)
+timezone=$(timedatectl show --value --property=Timezone)
 
 #=================================================
 # STOP SYSTEMD SERVICE