Skip to content

Commit

Permalink
Code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 7, 2024
1 parent 3dc8348 commit 35cc100
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
7 changes: 5 additions & 2 deletions class/sellyoursaasutils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4290,7 +4290,7 @@ public function sellyoursaasRemoteAction($remoteaction, $object, $appusername =
'__APPDOMAIN__'=>$sldAndSubdomain.'.'.$domainname,
'__ALLOWOVERRIDE__'=>'',
'__VIRTUALHOSTHEAD__'=>$customvirtualhostline,
'__SELLYOURSAAS_LOGIN_FOR_SUPPORT__'=>$conf->global->SELLYOURSAAS_LOGIN_FOR_SUPPORT,
'__SELLYOURSAAS_LOGIN_FOR_SUPPORT__'=>getDolGlobalString('SELLYOURSAAS_LOGIN_FOR_SUPPORT'),
'__CONTRACTREF__'=>$contract->ref,
);

Expand Down Expand Up @@ -4465,9 +4465,12 @@ public function sellyoursaasRemoteAction($remoteaction, $object, $appusername =
dol_syslog($this->error, LOG_ERR);
}
} elseif ($tmparray[0] === 'PHPMETHOD') {
// keyword : PHPMETHOD then function name to call, then args (use ':' as sep.)
// Keyword PHPMETHOD then : then function name to call ; args seaprated with ;
// ex: PHPMETHOD:caprelCountDoliSCANUsers;__CONTRACTREF__;__INSTANCEDBPREFIX__;
// ex: PHPMETHOD:sellyoursaasGetNbUsersContract;__CONTRACTREF__;name of extrafield;SELECT to count
$arguments = make_substitutions($tmparray[1], $substitarray);
// TODO @LMR Replace param __OBJECTREF__ with $object contract instead of __CONTRACTREF__.
// TODO @LMR Replace param name of extrafield with $tmpobject->options['options_'.name_of_extrafield].
$argsArray = explode(';', $arguments);
$customFunctionToCall = array_shift($argsArray);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Funded by the Open Source companies https://www.dolicloud.com [DoliCloud] and ht
* Instance subscription quota systems.
* Tools facilitating maintenance, customer support, application updates.
* Management of a reseller network. Dedicated reseller area (invoicing, customer account).
* Infrastructure cost per instance <30 cents (Cost observed on the DoliCloud sales department providing Dolibarr ERP CRM).
* Infrastructure cost per instance <50 cents (Cost observed on the DoliCloud sales department providing Dolibarr ERP CRM).
* ...


Expand Down Expand Up @@ -4273,8 +4273,8 @@ section "Duplicate an instance into another instance (already existing instance)
Then go on the file of instance X in the backoffice, tab "Backups" and use the command lines into
section "Move an instance into another server (non existing target instance)".

The option "confirm" will move the instance and close the old one.
The option "confirmredirect" will move the instance and the old one will be flagged as a "redirect to the new one"
The option "*confirm*" will move the instance and close the old one.
The option "*confirmredirect*" will move the instance and the old one will be flagged as a "redirect to the new one"
so the old URL will still works (temporarily until the old instance is closed)


Expand Down Expand Up @@ -4626,18 +4626,26 @@ In addition, if other applications were active on the cloned server:

=== Upgrade OS

Upgrading the OS is a risky operation. It is better to move instance from one server to a new
one with a new OS.

You can create a clone of an instance (and its attached hard disk) if you
want to test first that this operation works correctly. Update your file */etc/hosts* to be able
to test an instance on the new server.

To update Ubuntu to a higher LTS version on a SellYourSaas server:

[source,sql]
---------------
apt dist-upgrade
apt dist-upgrade or do-release-upgrade
# if you move from 16.04 to 18.04, you must also run
# if you move from 16.04 to 18.04, you must also delete old repository of ondrej/php and and reinstall it with
apt install php-mysql
a2enmod php7.2
apt remove php-fpm php7-fpm
# if you move from 18.04 to 20.04, you must also run
# if you move from 18.04 to 20.04, you must also delete old repository of ondrej/php and and reinstall it with
sudo add-apt-repository ppa:ondrej/php
apt install php-mysql
a2enmod php7.4
apt remove php-fpm php7-fpm
Expand Down Expand Up @@ -6230,7 +6238,7 @@ See https://developer.android.com/privacy-and-security/security-ssl#MissingCa
Fix this by setting correctly your SSLxxx variable in your apache virtual host.
==== do-release-upgrade hangs with no answer
==== do-release-upgrade or apt dist-upgrade hangs with no answer
This may happen if you fails to connect to the remote ubuntu or mirror server.
Expand Down
2 changes: 1 addition & 1 deletion scripts/ansible/launch_install_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
- php8.1
- php8.1-cli
- libapache2-mod-php8.1
#- php8.0-fpm
#- php8.1-fpm
- php8.1-gd
- php8.1-imap
- php8.1-ldap
Expand Down

0 comments on commit 35cc100

Please sign in to comment.