Custom folder

Moderator: crythias

Post Reply
ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Custom folder

Post by ruzzetto » 19 May 2017, 12:16

Hi,
probably it's my fault but i installed a new otrs environment (for production purpose) and under /opt/otrs/Custom i cannot find any subfolder , while they're present on the old environment.... i don't remember i created them..... have i to enable them?
thanks

zzz
OTRS superhero
Posts: 216
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x - 6.0.x
Real Name: Emin

Re: Custom folder

Post by zzz » 19 May 2017, 12:20

Hello ruzzetto,

did you install all packages from your old environment into your new one?

ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Re: Custom folder

Post by ruzzetto » 19 May 2017, 12:23

sure, i checked again and i installed the same packages

zzz
OTRS superhero
Posts: 216
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x - 6.0.x
Real Name: Emin

Re: Custom folder

Post by zzz » 19 May 2017, 12:26

What files are in "Custom" or do you only have empty folders on your old system?

ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Re: Custom folder

Post by ruzzetto » 19 May 2017, 12:29

i have the entire tree for Modules, Output and System subfolders....and obviously some custom files, for example CustomerHeader.tt

zzz
OTRS superhero
Posts: 216
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x - 6.0.x
Real Name: Emin

Re: Custom folder

Post by zzz » 19 May 2017, 12:35

How about you just open these files and check the copyrights so you know the origin.
Nobody can tell you what you changed on your old system :P

ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Re: Custom folder

Post by ruzzetto » 19 May 2017, 12:40

for example i created a copy of CustomerHeader.tt located in

Code: Select all

/opt/otrs/Kernel/Output/HTML/Templates/Standard
in

Code: Select all

/opt/otrs/Custom/Kernel/Output/HTML/Templates/Standard
but i didn't create subfolders ../Output/HTML/Templates/Standard...
:)

Giulio Soleni
OTRS superhero
Posts: 391
Joined: 30 Dec 2010, 14:35
OTRS Version?: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: Custom folder

Post by Giulio Soleni » 22 May 2017, 14:54

ciao
/opt/otrs/Custom/ folder is empty by design when you install OTRS from scratch.
here you may specify any custom code or template file that you may have changed to be more suitable for your needs or requirements, and it is not necessary to replicate the whole set of files that made up the entire OTRS application.

If you would like to restore a test implementation on a new production environment, you may get through the ordinary backup and restore procedure (with /opt/otrs/scripts/backup.pl and restore.pl scripts that are provided) or you may chose to port them manually one by one from the old environment to the new one.

Also do not forget to run /opt/otrs/bin/otrs.SetPermissions.pl script to restore the correct file ownership and permissions of all the OTRS files (code and data).
The parameters of this command may vary with the release of your specific Operating System ... with CentOS or RedHat the command to use should be:

Code: Select all

./otrs.SetPermissions.pl --otrs-user=otrs --web-group=apache /opt/otrs
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.

Post Reply