Re: The Grand DEB Packaging Thread!
Quote:
here is an advanced example of something I'm using (it will execute different options depending on what the user asked, i.e. upgrade, remove or purge): Code:
#!/bin/sh |
Re: The Grand DEB Packaging Thread!
Thank you Saturn but that is pure chinese for me :(
I saw in some deb packages something like this, for ex.: theme.ini and below theme.ini.backup (or something like that, this is not exactly). I assume that the files with the .backup extension will be restored after uninstallation. Does anyone know something like this? It is possible? I think that this method should make a backup of each file that would be replaced/edit/deleted with a .backup extension |
Re: The Grand DEB Packaging Thread!
your prerm file can contain the commands for replacing back the original files...
|
Re: The Grand DEB Packaging Thread!
Quote:
And then a postrm script to restore that .backup file? If could someone post an example so i can get a better idea |
Re: The Grand DEB Packaging Thread!
Where i make the mistake in the preinst?
Code:
#!/bin/bash |
Re: The Grand DEB Packaging Thread!
Code:
#!/bin/bash |
Re: The Grand DEB Packaging Thread!
@flotron replace also #!/bin/bash with #!/bin/sh
because bash is not by default installed, but sh is. |
Re: The Grand DEB Packaging Thread!
Quote:
|
Re: The Grand DEB Packaging Thread!
For sure use sh instead of bash.
And I assume, that 'exit 0' will exit the installation, not only this script. Just remove that. And there should be no need for a blank line at the end, but it does not hurt also. |
Re: The Grand DEB Packaging Thread!
Quote:
Maybe i need some permission to modify that file? "/usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css" |
All times are GMT. The time now is 20:58. |
vBulletin® Version 3.8.8