Compare commits

...

2 Commits

Author SHA1 Message Date
Zack Spear
30fbbc99a6 fix(web): add missing translations 2023-09-07 12:35:37 -07:00
Zack Spear
0e6f72effe refactor(plg): preserve & restore new upc component dir on install & remove 2023-09-07 12:35:24 -07:00
2 changed files with 9 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ exit 0
<?
$msini = @parse_ini_file('/boot/config/plugins/dynamix.my.servers/myservers.cfg', true);
# for convenience, scan myservers.cfg for deleteOnUninstall="no" and if that exists,
# for convenience, scan myservers.cfg for deleteOnUninstall="no" and if that exists,
# then skip the rest of the cleanup.
$deleteOnUninstall = ($msini === false || empty($msini['plugin']['deleteOnUninstall']) || $msini['plugin']['deleteOnUninstall'] == 'yes');
@@ -319,6 +319,7 @@ if [ -e /etc/rc.d/rc.unraid-api ]; then
FILE=/usr/local/emhttp/plugins/dynamix.my.servers/include/myservers2.php && [[ -f "$FILE-" ]] && mv -f "$FILE-" "$FILE"
FILE=/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php && [[ -f "$FILE-" ]] && mv -f "$FILE-" "$FILE"
FILE=/sbin/upgradepkg && [[ -f "$FILE-" ]] && mv -f "$FILE-" "$FILE"
DIR=/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components && [[ -d "$DIR-" ]] && mv -f "$DIR-" "$DIR"
# delete plugin files from flash drive and OS
rm -f /boot/config/plugins/dynamix.my.servers/.gitignore
rm -f /etc/rc.d/rc.unraid-api
@@ -379,7 +380,7 @@ if [[ "${version:0:3}" == "6.9" || "${version:0:7}" == "6.10.0-" ]]; then
echo
PLGNAME=dynamix.unraid.net
[ "${PLGTYPE}" = "staging" ] && PLGNAME=dynamix.unraid.net.staging
DIR="/usr/local/emhttp/plugins/${PLGNAME}" && [[ ! -d "$DIR" ]] && mkdir "$DIR"
cat << EOF > "$DIR/README.md"
**Unraid Connect**
@@ -405,6 +406,7 @@ FILE=/usr/local/emhttp/plugins/dynamix.my.servers/include/myservers1.php && [[ -
FILE=/usr/local/emhttp/plugins/dynamix.my.servers/include/myservers2.php && [[ -f "$FILE" ]] && mv -f "$FILE" "$FILE-"
FILE=/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php && [[ -f "$FILE" ]] && mv -f "$FILE" "$FILE-"
FILE=/sbin/upgradepkg && [[ -f "$FILE" ]] && cp -f "$FILE" "$FILE-"
DIR=/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components && [[ -d "$DIR" ]] && mv -f "$DIR" "$DIR-"
# move settings on flash drive
CFG_OLD=/boot/config/plugins/Unraid.net

View File

@@ -201,5 +201,10 @@ $webComponentTranslations = [
'Install Recovered' => _('Install Recovered'),
'Install Replaced' => _('Install Replaced'),
'Your free Trial key provides all the functionality of a Pro Registration key' => _('Your free Trial key provides all the functionality of a Pro Registration key'),
'Calculating trial expiration…' => _('Calculating trial expiration…'),
'Signing In' => _('Signing In'),
'Signing Out' => _('Signing Out'),
'Sign In requires the local unraid-api to be running' => _('Sign In requires the local unraid-api to be running'),
'Sign Out requires the local unraid-api to be running' => _('Sign Out requires the local unraid-api to be running')
],
];