doubt with sopm files
Moderator: crythias
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
doubt with sopm files
Dears,
I have some doubts.
First:
How can I create directory?
I have example with files:
<Filelist>
<File Permission="644" Location="Kernel/Config/Files/XML/customSkins.xml"></File>
</Filelist>
Second:
I need when I finish installation of extension, how can I add a comand shell?
Third:
I need exclued temp files of some pastes, How Can I delete paste or files recurisely?
#################
My Start sopm:
# Versão 0.0.2 da build em xml para preparação do conteúdo do pacote.
cat custom-skin.sopm
<?xml version="1.0" encoding="utf-8" ?>
<otrs_package version="1.0">
<Name>custom-skin</Name>
<Version>0.0.2</Version>
<Vendor>Nice CUSTOM</Vendor>
<URL>https://otrs.com/</URL>
<License>GNU GENERAL PUBLIC LICENSE Version 3, 8 December 2020</License>
<Description Lang="en">Nice Custom</Description>
<Description Lang="pt">otima customizações</Description>
<IntroInstall Type="post" Lang="en" Title="Thank you!">Thank you for choosing the Nice Custom.</IntroInstall>
<IntroInstall Type="post" Lang="pt" Title="Obrigado!">Obrigado por escolhe otima customizações.</IntroInstall>
<BuildDate>?</BuildDate>
<BuildHost>?</BuildHost>
<Filelist>
<File Permission="644" Location="Kernel/Config/Files/XML/customSkins.xml"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/css/Core.Header.css"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/css-cache/"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/img/bg_topo.png"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/img/logo-nice-transp.png"></File>
</Filelist>
</otrs_package>
I have some doubts.
First:
How can I create directory?
I have example with files:
<Filelist>
<File Permission="644" Location="Kernel/Config/Files/XML/customSkins.xml"></File>
</Filelist>
Second:
I need when I finish installation of extension, how can I add a comand shell?
Third:
I need exclued temp files of some pastes, How Can I delete paste or files recurisely?
#################
My Start sopm:
# Versão 0.0.2 da build em xml para preparação do conteúdo do pacote.
cat custom-skin.sopm
<?xml version="1.0" encoding="utf-8" ?>
<otrs_package version="1.0">
<Name>custom-skin</Name>
<Version>0.0.2</Version>
<Vendor>Nice CUSTOM</Vendor>
<URL>https://otrs.com/</URL>
<License>GNU GENERAL PUBLIC LICENSE Version 3, 8 December 2020</License>
<Description Lang="en">Nice Custom</Description>
<Description Lang="pt">otima customizações</Description>
<IntroInstall Type="post" Lang="en" Title="Thank you!">Thank you for choosing the Nice Custom.</IntroInstall>
<IntroInstall Type="post" Lang="pt" Title="Obrigado!">Obrigado por escolhe otima customizações.</IntroInstall>
<BuildDate>?</BuildDate>
<BuildHost>?</BuildHost>
<Filelist>
<File Permission="644" Location="Kernel/Config/Files/XML/customSkins.xml"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/css/Core.Header.css"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/css-cache/"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/img/bg_topo.png"></File>
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/img/logo-nice-transp.png"></File>
</Filelist>
</otrs_package>
-
- Administrator
- Posts: 4011
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: doubt with sopm files
Hi,
Which directory you want to create and why? If a new directory is needed for a file which is contained in the package it will be created during package install. The css-cache is created by MinifyFiles() in Kernel::System::Loader
Please explain your second and third question more in detail. Which command you need to run and why? And where are these temp file created you want to delete?
- Roy
Which directory you want to create and why? If a new directory is needed for a file which is contained in the package it will be created during package install. The css-cache is created by MinifyFiles() in Kernel::System::Loader
Please explain your second and third question more in detail. Which command you need to run and why? And where are these temp file created you want to delete?
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
Re: doubt with sopm files
Well, I need to execute this command for update my skins on otrs.
First:
Then isn't it necessary create paste css-cache?
#################################################
Second question:
I would execute this command when install the skins.
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs'
##############################################
Third question.
When I remove package I would like exclude all files and css-cache recursive too.
##############################################
This is my problems.
First:
Then isn't it necessary create paste css-cache?
#################################################
Second question:
I would execute this command when install the skins.
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs'
##############################################
Third question.
When I remove package I would like exclude all files and css-cache recursive too.
##############################################
This is my problems.
-
- Administrator
- Posts: 4011
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: doubt with sopm files
Hi,
the config rebuild is automatically triggered by the package manager during installation. And also the files are removed on uninstall.
- Roy
the config rebuild is automatically triggered by the package manager during installation. And also the files are removed on uninstall.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: doubt with sopm files
Hey,
You don't create the css-cache by hand.
Remove the file and the line in your .sopm.
<File Permission="644" Location="var/httpd/htdocs/skins/Agent/nice/css-cache/"></File>
Anything unclear?
— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
Re: doubt with sopm files
Well, thanks work installation.
Last edited by spinaldf on 10 Dec 2020, 15:51, edited 1 time in total.
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
Re: doubt with sopm files
Only a problem now. When I use the option "uninstall package" ,The files were excluded, but pastes and sub pastes no. Any suggestion?
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: doubt with sopm files
If you mean that the directories were not deleted: that's no problem and no harm to your system.
These folders will be deleted on your next minor update anyway.
— Emin
These folders will be deleted on your next minor update anyway.
— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
Re: doubt with sopm files
ok, I have a new doubt.
What is difference in directory "/opt/otrs/var/httpd/htdocs/skins"
/opt/otrs/var/httpd/htdocs/skins/Agent
/opt/otrs/var/httpd/htdocs/skins/Customer
Really, Do I need to add skin files in both pastes?
What is difference in directory "/opt/otrs/var/httpd/htdocs/skins"
/opt/otrs/var/httpd/htdocs/skins/Agent
/opt/otrs/var/httpd/htdocs/skins/Customer
Really, Do I need to add skin files in both pastes?
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: doubt with sopm files
There are skins for agents (index.pl) and customers (customer.pl).
Whom are you trying to create a skin for?
This gist will show you how to create one for customers. The .xml will look slightly different if you want to make it for agents.
Best regards
Emin
PS: We have two free and public skins Modern Skin and Modern Skin Customer. You can install them on a test/dev system, copy the files, and create your own skin by just changing the name and the CSS values if you need a working example.
Whom are you trying to create a skin for?
This gist will show you how to create one for customers. The .xml will look slightly different if you want to make it for agents.
Best regards
Emin
PS: We have two free and public skins Modern Skin and Modern Skin Customer. You can install them on a test/dev system, copy the files, and create your own skin by just changing the name and the CSS values if you need a working example.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny newbie
- Posts: 48
- Joined: 29 Apr 2019, 16:29
- Znuny Version: 6community
- Real Name: Luiz Guilherme
Re: doubt with sopm files
For index.pl.
Now understand. Thanks for information, on old server exists this files, then I need to copy too for custom in version 6 of otrs.
Now understand. Thanks for information, on old server exists this files, then I need to copy too for custom in version 6 of otrs.