add new menu upgrade option to reset file permissions (#7232)
* add new menu upgrade option to reset file permissions
This commit is contained in:
parent
9106c7fbfe
commit
3144036ae0
|
|
@ -594,6 +594,33 @@ $text['label-upgrade_permissions']['zh-cn'] = "权限默认值";
|
|||
$text['label-upgrade_permissions']['ja-jp'] = "許可のデフォルト";
|
||||
$text['label-upgrade_permissions']['ko-kr'] = "권한 기본값";
|
||||
|
||||
$text['label-update_filesystem_permissions']['en-us'] = "Filesystem Permissions";
|
||||
$text['label-update_filesystem_permissions']['en-gb'] = "Filesystem Permissions";
|
||||
$text['label-update_filesystem_permissions']['ar-eg'] = "";
|
||||
$text['label-update_filesystem_permissions']['de-at'] = "";
|
||||
$text['label-update_filesystem_permissions']['de-ch'] = "";
|
||||
$text['label-update_filesystem_permissions']['de-de'] = "";
|
||||
$text['label-update_filesystem_permissions']['el-gr'] = "";
|
||||
$text['label-update_filesystem_permissions']['es-cl'] = "";
|
||||
$text['label-update_filesystem_permissions']['es-mx'] = "";
|
||||
$text['label-update_filesystem_permissions']['fr-ca'] = "";
|
||||
$text['label-update_filesystem_permissions']['fr-fr'] = "";
|
||||
$text['label-update_filesystem_permissions']['he-il'] = "";
|
||||
$text['label-update_filesystem_permissions']['it-it'] = "";
|
||||
$text['label-update_filesystem_permissions']['ka-ge'] = "";
|
||||
$text['label-update_filesystem_permissions']['nl-nl'] = "";
|
||||
$text['label-update_filesystem_permissions']['pl-pl'] = "";
|
||||
$text['label-update_filesystem_permissions']['pt-br'] = "";
|
||||
$text['label-update_filesystem_permissions']['pt-pt'] = "";
|
||||
$text['label-update_filesystem_permissions']['ro-ro'] = "";
|
||||
$text['label-update_filesystem_permissions']['ru-ru'] = "";
|
||||
$text['label-update_filesystem_permissions']['sv-se'] = "";
|
||||
$text['label-update_filesystem_permissions']['uk-ua'] = "";
|
||||
$text['label-update_filesystem_permissions']['tr-tr'] = "";
|
||||
$text['label-update_filesystem_permissions']['zh-cn'] = "";
|
||||
$text['label-update_filesystem_permissions']['ja-jp'] = "";
|
||||
$text['label-update_filesystem_permissions']['ko-kr'] = "";
|
||||
|
||||
$text['label-upgrade_menu']['en-us'] = "Menu Defaults";
|
||||
$text['label-upgrade_menu']['en-gb'] = "Menu Defaults";
|
||||
$text['label-upgrade_menu']['ar-eg'] = "افتراضيات القائمة";
|
||||
|
|
@ -1242,6 +1269,87 @@ $text['description-upgrade_permissions']['zh-cn'] = "还原默认组权限。";
|
|||
$text['description-upgrade_permissions']['ja-jp'] = "デフォルトのグループ許可を復元します。";
|
||||
$text['description-upgrade_permissions']['ko-kr'] = "기본 그룹 권한을 복원합니다.";
|
||||
|
||||
$text['description-update_filesystem_permissions']['en-us'] = 'Update the filesystem permissions to use user www-data';
|
||||
$text['description-update_filesystem_permissions']['en-gb'] = 'Update the filesystem permissions to use user www-data';
|
||||
$text['description-update_filesystem_permissions']['ar-eg'] = 'تحديث أذونات نظام الملفات لاستخدام بيانات المستخدم www-data';
|
||||
$text['description-update_filesystem_permissions']['de-at'] = 'Aktualisieren Sie die Dateisystemberechtigungen, um den Benutzer www-data zu verwenden';
|
||||
$text['description-update_filesystem_permissions']['de-ch'] = 'Aktualisieren Sie die Dateisystemberechtigungen, um den Benutzer www-data zu verwenden';
|
||||
$text['description-update_filesystem_permissions']['de-de'] = 'Aktualisieren Sie die Dateisystemberechtigungen, um den Benutzer www-data zu verwenden';
|
||||
$text['description-update_filesystem_permissions']['el-gr'] = 'Ενημερώστε τα δικαιώματα του συστήματος αρχείων για να χρησιμοποιήσετε τα www-data χρήστη';
|
||||
$text['description-update_filesystem_permissions']['es-cl'] = 'Actualice los permisos del sistema de archivos para utilizar el usuario www-data';
|
||||
$text['description-update_filesystem_permissions']['es-mx'] = 'Actualice los permisos del sistema de archivos para utilizar el usuario www-data';
|
||||
$text['description-update_filesystem_permissions']['fr-ca'] = 'Mettre à jour les autorisations du système de fichiers pour utiliser l'utilisateur www-data';
|
||||
$text['description-update_filesystem_permissions']['fr-fr'] = 'Mettre à jour les autorisations du système de fichiers pour utiliser l'utilisateur www-data';
|
||||
$text['description-update_filesystem_permissions']['he-il'] = 'עדכן את הרשאות מערכת הקבצים כדי להשתמש ב-www-data של המשתמש';
|
||||
$text['description-update_filesystem_permissions']['it-it'] = 'Aggiornare i permessi del file system per utilizzare l'utente www-data';
|
||||
$text['description-update_filesystem_permissions']['ka-ge'] = 'განაახლეთ ფაილური სისტემის ნებართვები მომხმარებლის www-data-ის გამოსაყენებლად';
|
||||
$text['description-update_filesystem_permissions']['nl-nl'] = 'Werk de bestandssysteemmachtigingen bij om de gebruiker www-data te gebruiken';
|
||||
$text['description-update_filesystem_permissions']['pl-pl'] = 'Zaktualizuj uprawnienia systemu plików, aby użyć użytkownika www-data';
|
||||
$text['description-update_filesystem_permissions']['pt-br'] = 'Atualize as permissões do sistema de arquivos para usar o usuário www-data';
|
||||
$text['description-update_filesystem_permissions']['pt-pt'] = 'Atualize as permissões do sistema de arquivos para usar o usuário www-data';
|
||||
$text['description-update_filesystem_permissions']['ro-ro'] = 'Actualizați permisiunile sistemului de fișiere pentru a utiliza www-data utilizatorului';
|
||||
$text['description-update_filesystem_permissions']['ru-ru'] = 'Обновите разрешения файловой системы для использования пользователя www-data';
|
||||
$text['description-update_filesystem_permissions']['sv-se'] = 'Uppdatera filsystemets behörigheter för att använda användarens www-data';
|
||||
$text['description-update_filesystem_permissions']['uk-ua'] = 'Оновіть дозволи файлової системи, щоб використовувати дані користувача www';
|
||||
$text['description-update_filesystem_permissions']['tr-tr'] = 'Dosya sistemi izinlerini www-data kullanıcısını kullanacak şekilde güncelleyin';
|
||||
$text['description-update_filesystem_permissions']['zh-cn'] = '更新文件系统权限以使用用户 www-data';
|
||||
$text['description-update_filesystem_permissions']['ja-jp'] = 'ユーザーwww-dataを使用するためにファイルシステムの権限を更新します';
|
||||
$text['description-update_filesystem_permissions']['ko-kr'] = '사용자 www-data를 사용하기 위해 파일 시스템 권한을 업데이트합니다.';
|
||||
|
||||
$text['label-header1']['en-us'] = 'Root account or sudo account must be used for this option';
|
||||
$text['label-header1']['en-gb'] = 'Root account or sudo account must be used for this option';
|
||||
$text['label-header1']['ar-eg'] = 'يجب استخدام حساب الجذر أو حساب sudo لهذا الخيار';
|
||||
$text['label-header1']['de-at'] = 'Für diese Option muss ein Root-Konto oder ein Sudo-Konto verwendet werden.';
|
||||
$text['label-header1']['de-ch'] = 'Für diese Option muss ein Root-Konto oder ein Sudo-Konto verwendet werden.';
|
||||
$text['label-header1']['de-de'] = 'Für diese Option muss ein Root-Konto oder ein Sudo-Konto verwendet werden.';
|
||||
$text['label-header1']['el-gr'] = 'Για αυτήν την επιλογή πρέπει να χρησιμοποιηθεί λογαριασμός ρίζας ή λογαριασμός sudo';
|
||||
$text['label-header1']['es-cl'] = 'Se debe utilizar una cuenta raíz o una cuenta sudo para esta opción';
|
||||
$text['label-header1']['es-mx'] = 'Se debe utilizar una cuenta raíz o una cuenta sudo para esta opción';
|
||||
$text['label-header1']['fr-ca'] = 'Un compte root ou un compte sudo doit être utilisé pour cette option';
|
||||
$text['label-header1']['fr-fr'] = 'Un compte root ou un compte sudo doit être utilisé pour cette option';
|
||||
$text['label-header1']['he-il'] = 'יש להשתמש בחשבון שורש או חשבון sudo עבור אפשרות זו';
|
||||
$text['label-header1']['it-it'] = 'Per questa opzione è necessario utilizzare un account root o un account sudo';
|
||||
$text['label-header1']['ka-ge'] = 'Root ან sudo ანგარიში უნდა იყოს გამოყენებული ამ ვარიანტისთვის';
|
||||
$text['label-header1']['nl-nl'] = 'Voor deze optie moet een root-account of sudo-account worden gebruikt';
|
||||
$text['label-header1']['pl-pl'] = 'Do tej opcji należy użyć konta root lub sudo';
|
||||
$text['label-header1']['pt-br'] = 'A conta root ou sudo deve ser usada para esta opção';
|
||||
$text['label-header1']['pt-pt'] = 'A conta root ou sudo deve ser usada para esta opção';
|
||||
$text['label-header1']['ro-ro'] = 'Contul root sau contul sudo trebuie utilizat pentru această opțiune';
|
||||
$text['label-header1']['ru-ru'] = 'Для этой опции необходимо использовать учетную запись root или sudo.';
|
||||
$text['label-header1']['sv-se'] = 'Root-konto eller sudo-konto måste användas för detta alternativ';
|
||||
$text['label-header1']['uk-ua'] = 'Для цієї опції необхідно використовувати обліковий запис root або sudo';
|
||||
$text['label-header1']['tr-tr'] = 'Bu seçenek için kök hesap veya sudo hesabı kullanılmalıdır';
|
||||
$text['label-header1']['zh-cn'] = '此选项必须使用 root 帐户或 sudo 帐户';
|
||||
$text['label-header1']['ja-jp'] = 'このオプションにはルートアカウントまたはsudoアカウントを使用する必要があります';
|
||||
$text['label-header1']['ko-kr'] = '이 옵션에는 루트 계정 또는 sudo 계정을 사용해야 합니다.';
|
||||
|
||||
$text['label-header2']['en-us'] = 'This option is used for resetting the permissions on the file system after executing commands using the root user account';
|
||||
$text['label-header2']['en-gb'] = 'This option is used for resetting the permissions on the file system after executing commands using the root user account';
|
||||
$text['label-header2']['ar-eg'] = 'يستخدم هذا الخيار لإعادة تعيين الأذونات على نظام الملفات بعد تنفيذ الأوامر باستخدام حساب المستخدم الجذر';
|
||||
$text['label-header2']['de-at'] = 'Diese Option wird zum Zurücksetzen der Berechtigungen für das Dateisystem verwendet, nachdem Befehle mit dem Root-Benutzerkonto ausgeführt wurden.';
|
||||
$text['label-header2']['de-ch'] = 'Diese Option wird zum Zurücksetzen der Berechtigungen für das Dateisystem verwendet, nachdem Befehle mit dem Root-Benutzerkonto ausgeführt wurden.';
|
||||
$text['label-header2']['de-de'] = 'Diese Option wird zum Zurücksetzen der Berechtigungen für das Dateisystem verwendet, nachdem Befehle mit dem Root-Benutzerkonto ausgeführt wurden.';
|
||||
$text['label-header2']['el-gr'] = 'Αυτή η επιλογή χρησιμοποιείται για την επαναφορά των δικαιωμάτων στο σύστημα αρχείων μετά την εκτέλεση εντολών χρησιμοποιώντας τον λογαριασμό χρήστη root';
|
||||
$text['label-header2']['es-cl'] = 'Esta opción se utiliza para restablecer los permisos en el sistema de archivos después de ejecutar comandos utilizando la cuenta de usuario root';
|
||||
$text['label-header2']['es-mx'] = 'Esta opción se utiliza para restablecer los permisos en el sistema de archivos después de ejecutar comandos utilizando la cuenta de usuario root';
|
||||
$text['label-header2']['fr-ca'] = 'Cette option est utilisée pour réinitialiser les autorisations sur le système de fichiers après l'exécution de commandes à l'aide du compte utilisateur root';
|
||||
$text['label-header2']['fr-fr'] = 'Cette option est utilisée pour réinitialiser les autorisations sur le système de fichiers après l'exécution de commandes à l'aide du compte utilisateur root';
|
||||
$text['label-header2']['he-il'] = 'אפשרות זו משמשת לאיפוס ההרשאות במערכת הקבצים לאחר ביצוע פקודות באמצעות חשבון המשתמש השורש';
|
||||
$text['label-header2']['it-it'] = 'Questa opzione viene utilizzata per reimpostare i permessi sul file system dopo l'esecuzione di comandi utilizzando l'account utente root';
|
||||
$text['label-header2']['ka-ge'] = 'ეს პარამეტრი გამოიყენება ფაილურ სისტემაზე ნებართვების გადატვირთვისთვის ბრძანებების შესრულების შემდეგ root მომხმარებლის ანგარიშის გამოყენებით';
|
||||
$text['label-header2']['nl-nl'] = 'Deze optie wordt gebruikt om de machtigingen op het bestandssysteem opnieuw in te stellen na het uitvoeren van opdrachten met behulp van het root-gebruikersaccount';
|
||||
$text['label-header2']['pl-pl'] = 'Ta opcja służy do resetowania uprawnień w systemie plików po wykonaniu poleceń przy użyciu konta użytkownika root';
|
||||
$text['label-header2']['pt-br'] = 'Esta opção é usada para redefinir as permissões no sistema de arquivos após executar comandos usando a conta de usuário root';
|
||||
$text['label-header2']['pt-pt'] = 'Esta opção é usada para redefinir as permissões no sistema de arquivos após executar comandos usando a conta de usuário root';
|
||||
$text['label-header2']['ro-ro'] = 'Această opțiune este utilizată pentru resetarea permisiunilor pe sistemul de fișiere după executarea comenzilor folosind contul de utilizator root';
|
||||
$text['label-header2']['ru-ru'] = 'Эта опция используется для сброса прав доступа к файловой системе после выполнения команд с использованием учетной записи пользователя root.';
|
||||
$text['label-header2']['sv-se'] = 'Det här alternativet används för att återställa behörigheterna på filsystemet efter att ha kört kommandon med root-användarkontot';
|
||||
$text['label-header2']['uk-ua'] = 'Цей параметр використовується для скидання дозволів на файлову систему після виконання команд за допомогою облікового запису користувача root';
|
||||
$text['label-header2']['tr-tr'] = 'Bu seçenek, kök kullanıcı hesabını kullanarak komutları yürüttükten sonra dosya sistemindeki izinleri sıfırlamak için kullanılır';
|
||||
$text['label-header2']['zh-cn'] = '此选项用于在使用 root 用户帐户执行命令后重置文件系统的权限';
|
||||
$text['label-header2']['ja-jp'] = 'このオプションは、ルートユーザーアカウントを使用してコマンドを実行した後にファイルシステムの権限をリセットするために使用されます。';
|
||||
$text['label-header2']['ko-kr'] = '이 옵션은 root 사용자 계정을 사용하여 명령을 실행한 후 파일 시스템의 권한을 재설정하는 데 사용됩니다.';
|
||||
|
||||
$text['description-upgrade_menu']['en-us'] = "Restores the default items in the menu.";
|
||||
$text['description-upgrade_menu']['en-gb'] = "Restores the default items in the menu.";
|
||||
$text['description-upgrade_menu']['ar-eg'] = "";
|
||||
|
|
@ -1431,32 +1539,59 @@ $text['label-all_of_the_above']['zh-cn'] = "上述所有的";
|
|||
$text['label-all_of_the_above']['ja-jp'] = "上記のすべて";
|
||||
$text['label-all_of_the_above']['ko-kr'] = "무엇보다도";
|
||||
|
||||
$text['description-all_of_the_above']['en-us'] = "Performs an upgrade using options 1a, 2, 2b, 3, 4, and 5 in succession.";
|
||||
$text['description-all_of_the_above']['en-gb'] = "Performs an upgrade using options 1a, 2, 2b, 3, 4, and 5 in succession.";
|
||||
$text['description-all_of_the_above']['ar-eg'] = "إجراء ترقية باستخدام الخيارات 1أ، و2، و2ب، و3، و4، و5 على التوالي.";
|
||||
$text['description-all_of_the_above']['de-at'] = "Führt ein Upgrade mit den Optionen 1a, 2, 2b, 3, 4 und 5 nacheinander durch.";
|
||||
$text['description-all_of_the_above']['de-ch'] = "Führt ein Upgrade mit den Optionen 1a, 2, 2b, 3, 4 und 5 nacheinander durch.";
|
||||
$text['description-all_of_the_above']['de-de'] = "Führt ein Upgrade mit den Optionen 1a, 2, 2b, 3, 4 und 5 nacheinander durch.";
|
||||
$text['description-all_of_the_above']['el-gr'] = "Εκτελεί μια αναβάθμιση χρησιμοποιώντας τις επιλογές 1a, 2, 2b, 3, 4 και 5 διαδοχικά.";
|
||||
$text['description-all_of_the_above']['es-cl'] = "Realiza una actualización utilizando las opciones 1a, 2, 2b, 3, 4 y 5 en sucesión.";
|
||||
$text['description-all_of_the_above']['es-mx'] = "Realiza una actualización utilizando las opciones 1a, 2, 2b, 3, 4 y 5 en sucesión.";
|
||||
$text['description-all_of_the_above']['fr-ca'] = "Effectue une mise à niveau en utilisant successivement les options 1a, 2, 2b, 3, 4 et 5.";
|
||||
$text['description-all_of_the_above']['fr-fr'] = "Effectue une mise à niveau en utilisant successivement les options 1a, 2, 2b, 3, 4 et 5.";
|
||||
$text['description-all_of_the_above']['he-il'] = "מבצע שדרוג באמצעות אפשרויות 1a, 2, 2b, 3, 4 ו-5 ברצף.";
|
||||
$text['description-all_of_the_above']['it-it'] = "Esegue un aggiornamento utilizzando le opzioni 1a, 2, 2b, 3, 4 e 5 in successione.";
|
||||
$text['description-all_of_the_above']['ka-ge'] = "შეასრულებს განახლებას არჩევნებით 1ა, 2, 2ბ, 3, 4 და 5 ამ მიმდევრობით.";
|
||||
$text['description-all_of_the_above']['nl-nl'] = "Voert een upgrade uit met achtereenvolgens de opties 1a, 2, 2b, 3, 4 en 5.";
|
||||
$text['description-all_of_the_above']['pl-pl'] = "Wykonuje aktualizację, korzystając kolejno z opcji 1a, 2, 2b, 3, 4 i 5.";
|
||||
$text['description-all_of_the_above']['pt-br'] = "Executa uma atualização usando as opções 1a, 2, 2b, 3, 4 e 5 em sucessão.";
|
||||
$text['description-all_of_the_above']['pt-pt'] = "Executa uma atualização usando as opções 1a, 2, 2b, 3, 4 e 5 em sucessão.";
|
||||
$text['description-all_of_the_above']['ro-ro'] = "Efectuează o actualizare folosind opțiunile 1a, 2, 2b, 3, 4 și 5 succesiv.";
|
||||
$text['description-all_of_the_above']['ru-ru'] = "Выполняет обновление, последовательно используя параметры 1a, 2, 2b, 3, 4 и 5.";
|
||||
$text['description-all_of_the_above']['sv-se'] = "Utför en uppgradering med alternativ 1a, 2, 2b, 3, 4 och 5 i följd.";
|
||||
$text['description-all_of_the_above']['uk-ua'] = "Виконує оновлення, використовуючи послідовно параметри 1a, 2, 2b, 3, 4 і 5.";
|
||||
$text['description-all_of_the_above']['tr-tr'] = "Art arda 1a, 2, 2b, 3, 4 ve 5 seçeneklerini kullanarak yükseltme gerçekleştirir.";
|
||||
$text['description-all_of_the_above']['zh-cn'] = "连续使用选项 1a、2、2b、3、4 和 5 执行升级。";
|
||||
$text['description-all_of_the_above']['ja-jp'] = "オプション 1a、2、2b、3、4、および 5 を連続して使用してアップグレードを実行します。";
|
||||
$text['description-all_of_the_above']['ko-kr'] = "옵션 1a, 2, 2b, 3, 4, 5를 차례로 사용하여 업그레이드를 수행합니다.";
|
||||
$text['label-not_running_as_root']['en-us'] = 'Not root user - operation skipped';
|
||||
$text['label-not_running_as_root']['en-gb'] = 'Not root user - operation skipped';
|
||||
$text['label-not_running_as_root']['ar-eg'] = 'ليس مستخدمًا جذريًا - تم تخطي العملية';
|
||||
$text['label-not_running_as_root']['de-at'] = 'Kein Root-Benutzer – Vorgang übersprungen';
|
||||
$text['label-not_running_as_root']['de-ch'] = 'Kein Root-Benutzer – Vorgang übersprungen';
|
||||
$text['label-not_running_as_root']['de-de'] = 'Kein Root-Benutzer – Vorgang übersprungen';
|
||||
$text['label-not_running_as_root']['el-gr'] = 'Δεν είναι χρήστης root - η λειτουργία παραβλέφθηκε';
|
||||
$text['label-not_running_as_root']['es-cl'] = 'No es usuario root: se omitió la operación';
|
||||
$text['label-not_running_as_root']['es-mx'] = 'No es usuario root: se omitió la operación';
|
||||
$text['label-not_running_as_root']['fr-ca'] = 'Pas d'utilisateur root - opération ignorée';
|
||||
$text['label-not_running_as_root']['fr-fr'] = 'Pas d'utilisateur root - opération ignorée';
|
||||
$text['label-not_running_as_root']['he-il'] = 'לא משתמש שורש - הפעולה דילגה';
|
||||
$text['label-not_running_as_root']['it-it'] = 'Utente non root: operazione saltata';
|
||||
$text['label-not_running_as_root']['ka-ge'] = 'არ არის root მომხმარებელი - ოპერაცია გამოტოვებულია';
|
||||
$text['label-not_running_as_root']['nl-nl'] = 'Geen rootgebruiker - bewerking overgeslagen';
|
||||
$text['label-not_running_as_root']['pl-pl'] = 'Nie użytkownik root - operacja pominięta';
|
||||
$text['label-not_running_as_root']['pt-br'] = 'Usuário não root - operação ignorada';
|
||||
$text['label-not_running_as_root']['pt-pt'] = 'Usuário não root - operação ignorada';
|
||||
$text['label-not_running_as_root']['ro-ro'] = 'Nu utilizatorul root - operația a fost omisă';
|
||||
$text['label-not_running_as_root']['ru-ru'] = 'Не пользователь root — операция пропущена';
|
||||
$text['label-not_running_as_root']['sv-se'] = 'Inte root-användare - åtgärden hoppades över';
|
||||
$text['label-not_running_as_root']['uk-ua'] = 'Не root користувач - операцію пропущено';
|
||||
$text['label-not_running_as_root']['tr-tr'] = 'Kök kullanıcı değil - işlem atlandı';
|
||||
$text['label-not_running_as_root']['zh-cn'] = '非 root 用户 – 操作已跳过';
|
||||
$text['label-not_running_as_root']['ja-jp'] = 'ルートユーザーではありません - 操作はスキップされました';
|
||||
$text['label-not_running_as_root']['ko-kr'] = '루트 사용자가 아닙니다. 작업이 건너뛰어졌습니다.';
|
||||
|
||||
$text['description-all_of_the_above']['en-us'] = 'Performs an upgrade using options 1a, 2, 2b, 3, 4, 5, and 6 in succession.';
|
||||
$text['description-all_of_the_above']['en-gb'] = 'Performs an upgrade using options 1a, 2, 2b, 3, 4, 5, and 6 in succession.';
|
||||
$text['description-all_of_the_above']['ar-eg'] = 'يقوم بإجراء ترقية باستخدام الخيارات 1أ، 2، 2ب، 3، 4، 5، و6 على التوالي.';
|
||||
$text['description-all_of_the_above']['de-at'] = 'Führt ein Upgrade nacheinander mit den Optionen 1a, 2, 2b, 3, 4, 5 und 6 durch.';
|
||||
$text['description-all_of_the_above']['de-ch'] = 'Führt ein Upgrade nacheinander mit den Optionen 1a, 2, 2b, 3, 4, 5 und 6 durch.';
|
||||
$text['description-all_of_the_above']['de-de'] = 'Führt ein Upgrade nacheinander mit den Optionen 1a, 2, 2b, 3, 4, 5 und 6 durch.';
|
||||
$text['description-all_of_the_above']['el-gr'] = 'Εκτελεί μια αναβάθμιση χρησιμοποιώντας τις επιλογές 1a, 2, 2b, 3, 4, 5 και 6 διαδοχικά.';
|
||||
$text['description-all_of_the_above']['es-cl'] = 'Realiza una actualización utilizando las opciones 1a, 2, 2b, 3, 4, 5 y 6 en sucesión.';
|
||||
$text['description-all_of_the_above']['es-mx'] = 'Realiza una actualización utilizando las opciones 1a, 2, 2b, 3, 4, 5 y 6 en sucesión.';
|
||||
$text['description-all_of_the_above']['fr-ca'] = 'Effectue une mise à niveau en utilisant successivement les options 1a, 2, 2b, 3, 4, 5 et 6.';
|
||||
$text['description-all_of_the_above']['fr-fr'] = 'Effectue une mise à niveau en utilisant successivement les options 1a, 2, 2b, 3, 4, 5 et 6.';
|
||||
$text['description-all_of_the_above']['he-il'] = 'מבצע שדרוג באמצעות אפשרויות 1a, 2, 2b, 3, 4, 5 ו-6 ברצף.';
|
||||
$text['description-all_of_the_above']['it-it'] = 'Esegue un aggiornamento utilizzando le opzioni 1a, 2, 2b, 3, 4, 5 e 6 in successione.';
|
||||
$text['description-all_of_the_above']['ka-ge'] = 'განაახლებს ზედიზედ 1a, 2, 2b, 3, 4, 5 და 6 ვარიანტების გამოყენებით.';
|
||||
$text['description-all_of_the_above']['nl-nl'] = 'Voert een upgrade uit met behulp van opties 1a, 2, 2b, 3, 4, 5 en 6 achtereenvolgens.';
|
||||
$text['description-all_of_the_above']['pl-pl'] = 'Wykonuje aktualizację, korzystając kolejno z opcji 1a, 2, 2b, 3, 4, 5 i 6.';
|
||||
$text['description-all_of_the_above']['pt-br'] = 'Executa uma atualização usando as opções 1a, 2, 2b, 3, 4, 5 e 6 em sucessão.';
|
||||
$text['description-all_of_the_above']['pt-pt'] = 'Executa uma atualização usando as opções 1a, 2, 2b, 3, 4, 5 e 6 em sucessão.';
|
||||
$text['description-all_of_the_above']['ro-ro'] = 'Efectuează o actualizare folosind opțiunile 1a, 2, 2b, 3, 4, 5 și 6 succesiv.';
|
||||
$text['description-all_of_the_above']['ru-ru'] = 'Выполняет обновление, последовательно используя опции 1a, 2, 2b, 3, 4, 5 и 6.';
|
||||
$text['description-all_of_the_above']['sv-se'] = 'Utför en uppgradering med alternativ 1a, 2, 2b, 3, 4, 5 och 6 i följd.';
|
||||
$text['description-all_of_the_above']['uk-ua'] = 'Виконує оновлення, використовуючи послідовно параметри 1a, 2, 2b, 3, 4, 5 і 6.';
|
||||
$text['description-all_of_the_above']['tr-tr'] = '1a, 2, 2b, 3, 4, 5 ve 6 seçeneklerini sırayla kullanarak yükseltme gerçekleştirir.';
|
||||
$text['description-all_of_the_above']['zh-cn'] = '连续使用选项 1a、2、2b、3、4、5 和 6 执行升级。';
|
||||
$text['description-all_of_the_above']['ja-jp'] = 'オプション 1a、2、2b、3、4、5、6 を順番に使用してアップグレードを実行します。';
|
||||
$text['description-all_of_the_above']['ko-kr'] = '옵션 1a, 2, 2b, 3, 4, 5, 6을 연속으로 사용하여 업그레이드를 수행합니다.';
|
||||
|
||||
$text['label-update_external_repositories']['en-us'] = "Update External Repositories";
|
||||
$text['label-update_external_repositories']['en-gb'] = "Update External Repositories";
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ defined('STDIN') or die('Unauthorized');
|
|||
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||
|
||||
//create a database connection using default config
|
||||
$database = new database();
|
||||
$config = config::load();
|
||||
$database = database::new(['config' => $config]);
|
||||
|
||||
//load global defaults
|
||||
$settings = new settings(['database' => $database]);
|
||||
|
|
@ -58,7 +59,7 @@ $display_type = 'text';
|
|||
show_upgrade_menu();
|
||||
|
||||
function show_upgrade_menu() {
|
||||
global $text, $software_name;
|
||||
global $text, $software_name, $settings;
|
||||
//error_reporting(E_ALL);
|
||||
$line = str_repeat('-', strlen($text['title-cli_upgrade']) + 2);
|
||||
while (true) {
|
||||
|
|
@ -76,7 +77,8 @@ function show_upgrade_menu() {
|
|||
echo "3) {$text['label-upgrade_apps']} - {$text['description-upgrade_apps']}\n";
|
||||
echo "4) {$text['label-upgrade_menu']} - {$text['description-upgrade_menu']}\n";
|
||||
echo "5) {$text['label-upgrade_permissions']} - {$text['description-upgrade_permissions']}\n";
|
||||
echo "6) {$text['label-all_of_the_above']} - {$text['description-all_of_the_above']}\n";
|
||||
echo "6) {$text['label-update_filesystem_permissions']} - {$text['description-update_filesystem_permissions']}\n";
|
||||
echo "7) {$text['label-all_of_the_above']} - {$text['description-all_of_the_above']}\n";
|
||||
echo "0) Exit\n";
|
||||
echo "\n";
|
||||
echo "Choice: ";
|
||||
|
|
@ -108,11 +110,15 @@ function show_upgrade_menu() {
|
|||
do_upgrade_permissions();
|
||||
break;
|
||||
case 6:
|
||||
do_filesystem_permissions($text, $settings);
|
||||
break;
|
||||
case 7:
|
||||
do_upgrade_code();
|
||||
do_upgrade_schema();
|
||||
do_upgrade_domains();
|
||||
do_upgrade_menu();
|
||||
do_upgrade_permissions();
|
||||
do_filesystem_permissions($text, $settings);
|
||||
break;
|
||||
case 8:
|
||||
break;
|
||||
|
|
@ -122,6 +128,58 @@ function show_upgrade_menu() {
|
|||
}
|
||||
}
|
||||
|
||||
function do_filesystem_permissions($text, settings $settings) {
|
||||
|
||||
echo ($text['label-header1'] ?? "Root account or sudo account must be used for this option") . "\n";
|
||||
echo ($text['label-header2'] ?? "This option is used for resetting the permissions on the filesystem after executing commands using the root user account") . "\n";
|
||||
if (is_root_user()) {
|
||||
$directories = [];
|
||||
//get the fusionpbx folder
|
||||
$project_root = dirname(__DIR__, 2);
|
||||
//adjust the project root
|
||||
$directories[] = $project_root;
|
||||
//adjust the /etc/freeswitch
|
||||
$directories[] = $settings->get('switch', 'conf', null);
|
||||
$directories[] = $settings->get('switch', 'call_center', null); //normally in conf but can be different
|
||||
$directories[] = $settings->get('switch', 'dialplan', null); //normally in conf but can be different
|
||||
$directories[] = $settings->get('switch', 'directory', null); //normally in conf but can be different
|
||||
$directories[] = $settings->get('switch', 'languages', null); //normally in conf but can be different
|
||||
$directories[] = $settings->get('switch', 'sip_profiles', null); //normally in conf but can be different
|
||||
//adjust the /usr/share/freeswitch/{scripts,sounds}
|
||||
$directories[] = $settings->get('switch', 'scripts', null);
|
||||
$directories[] = $settings->get('switch', 'sounds', null);
|
||||
//adjust the /var/lib/freeswitch/{db,recordings,storage,voicemail}
|
||||
$directories[] = $settings->get('switch', 'db', null);
|
||||
$directories[] = $settings->get('switch', 'recordings', null);
|
||||
$directories[] = $settings->get('switch', 'storage', null);
|
||||
$directories[] = $settings->get('switch', 'voicemail', null); //normally included in storage but can be different
|
||||
//only set the xml_cdr directory permissions
|
||||
$log_directory = $settings->get('switch', 'log', null);
|
||||
if ($log_directory !== null) {
|
||||
$directories[] = $log_directory . '/xml_cdr';
|
||||
}
|
||||
//execute chown command for each directory
|
||||
foreach ($directories as $dir) {
|
||||
if ($dir !== null) {
|
||||
//notify user
|
||||
echo "chown -R www-data:www-data $dir\n";
|
||||
//execute
|
||||
exec("chown -R www-data:www-data $dir");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo ($text['label-not_running_as_root'] ?? "Not root user - operation skipped")."\n";
|
||||
}
|
||||
}
|
||||
|
||||
function is_root_user(): bool {
|
||||
return posix_getuid() === 0;
|
||||
}
|
||||
|
||||
function current_user(): ?string {
|
||||
return posix_getpwuid(posix_getuid())['name'] ?? null;
|
||||
}
|
||||
|
||||
//show the upgrade type
|
||||
function show_software_version() {
|
||||
echo software::version() . "\n";
|
||||
|
|
@ -334,8 +392,8 @@ function load_config_php() {
|
|||
$conf .= "xml_handler.reg_as_number_alias = false\n";
|
||||
$conf .= "xml_handler.number_as_presence_id = true\n";
|
||||
$conf .= "\n";
|
||||
$conf .= "#error reporting hide show all errors except notices and warnings\n";
|
||||
$conf .= "error.reporting = 'E_ALL ^ E_NOTICE ^ E_WARNING'\n";
|
||||
$conf .= "#error reporting hide all errors\n";
|
||||
$conf .= "error.reporting = user\n";
|
||||
|
||||
//write the config file
|
||||
$file_handle = fopen($config_file, "w");
|
||||
|
|
|
|||
Loading…
Reference in New Issue